Skip to content

Commit 630932f

Browse files
[cmake] only require a CXX compiler when tests are build
Signed-off-by: Thomas Devoogdt <[email protected]>
1 parent c5926fb commit 630932f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/cmake/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ project(zstd
3737
VERSION "${ZSTD_FULL_VERSION}"
3838
LANGUAGES C # Main library is in C
3939
ASM # And ASM
40-
CXX # Testing contributed code also utilizes CXX
4140
)
4241

4342
message(STATUS "ZSTD VERSION: ${zstd_VERSION}")
@@ -170,6 +169,7 @@ if (ZSTD_BUILD_PROGRAMS)
170169
endif ()
171170

172171
if (ZSTD_BUILD_TESTS)
172+
enable_language(CXX)
173173
enable_testing()
174174
if (NOT ZSTD_BUILD_STATIC)
175175
message(SEND_ERROR "You need to build static library to build tests")

0 commit comments

Comments
 (0)