File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -255,14 +255,14 @@ endif()
255255
256256# Build Testing
257257option (BUILD_TESTING "Build tests." OFF )
258- if (BUILD_TESTING AND GRK_BUILD_CODEC)
259- enable_testing ()
260- include (CTest )
261- find_path (GRK_DATA_ROOT README-GROK-TEST-DATA
262- PATHS $ENV{GRK_DATA_ROOT} ${CMAKE_SOURCE_DIR} /../grok-test-data
263- NO_CMAKE_FIND_ROOT_PATH )
264- add_subdirectory (tests )
265- set (GRK_BUILD_CORE_EXAMPLES ON CACHE BOOL "Build core examples" FORCE )
258+ if (BUILD_TESTING AND GRK_BUILD_CODEC AND EXISTS " ${CMAKE_CURRENT_SOURCE_DIR} /tests/CMakeLists.txt" )
259+ enable_testing ()
260+ include (CTest )
261+ find_path (GRK_DATA_ROOT README-GROK-TEST-DATA
262+ PATHS $ENV{GRK_DATA_ROOT} ${CMAKE_SOURCE_DIR} /../grok-test-data
263+ NO_CMAKE_FIND_ROOT_PATH )
264+ add_subdirectory (tests )
265+ set (GRK_BUILD_CORE_EXAMPLES ON CACHE BOOL "Build core examples" FORCE )
266266endif ()
267267
268268# install all targets referenced as GrokTargets
You can’t perform that action at this time.
0 commit comments