Skip to content

Commit f14098a

Browse files
lib: zstd: only enable CXX support if tests are required
Upstream: https://github.com/facebook/zstd/pull/4357/files Signed-off-by: Thomas Devoogdt <[email protected]>
1 parent 629db27 commit f14098a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zstd-1.5.7/build/cmake/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
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)