Merge pull request #2761 from magnusuMET/bugfix/skip_bin_test_on_non_test

Do not compile test program unless required
This commit is contained in:
Ward Fisher 2023-12-12 13:42:44 -07:00 committed by GitHub
commit 64e9185bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,9 @@ IF(ENABLE_S3)
ENDIF()
ENDIF()
BUILD_BIN_TEST(ncrandom)
IF(ENABLE_TESTS)
BUILD_BIN_TEST(ncrandom)
ENDIF()
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.h ${CMAKE_CURRENT_SOURCE_DIR}/*.c)
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt Makefile.am)