Skip to content

Commit

Permalink
Merge pull request #2761 from magnusuMET/bugfix/skip_bin_test_on_non_…
Browse files Browse the repository at this point in the history
…test

Do not compile test program unless required
  • Loading branch information
WardF authored Dec 12, 2023
2 parents dd61f30 + ed53598 commit 64e9185
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libdispatch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 64e9185

Please sign in to comment.