Skip to content

Commit

Permalink
Switch testing control to use standard ctest setting option
Browse files Browse the repository at this point in the history
  • Loading branch information
kdt3rd committed Jul 17, 2019
1 parent f44721e commit fe6bf4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions IlmBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ add_subdirectory( IlmThread )
# Can't seem to do EXCLUDE_FROM_ALL on the test executables
# since you can't then create a dependency on the internal
# "test" target such that it is auto built
option(ILMBASE_ENABLE_TESTS "Enables building of tests" ON)
if(ILMBASE_ENABLE_TESTS)
enable_testing()
enable_testing()
include(CTest)
if(BUILD_TESTING)
# TODO:
#include(CTest)
#set(CTEST_PROJECT_NAME "OpenEXR - IlmBase")
Expand Down
6 changes: 3 additions & 3 deletions OpenEXR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ add_subdirectory( IlmImfExamples )
# Can't seem to do EXCLUDE_FROM_ALL on the test executables
# since you can't then create a dependency on the internal
# "test" target such that it is auto built
option(OPENEXR_ENABLE_TESTS "Enables building of tests" ON)
if(OPENEXR_ENABLE_TESTS)
enable_testing()
enable_testing()
include(CTest)
if(BUILD_TESTING)
add_subdirectory( IlmImfTest )
add_subdirectory( IlmImfUtilTest )
add_subdirectory( IlmImfFuzzTest )
Expand Down

0 comments on commit fe6bf4c

Please sign in to comment.