Commit 41d796c0 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'test-FindGTK2-explicit'

28ae243c

 Tests: Run FindGTK2 tests only when explicitly enabled
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Kyle Edwards's avatarKyle Edwards <kyle.edwards@kitware.com>
Merge-request: !3100
parents 16426191 28ae243c
......@@ -1454,6 +1454,10 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
add_subdirectory(GoogleTest)
endif()
if(CMake_TEST_FindGTK2)
add_subdirectory(FindGTK2)
endif()
if(CMake_TEST_FindIconv)
add_subdirectory(FindIconv)
endif()
......@@ -1597,11 +1601,6 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
ADD_TEST_MACRO(FindMatlab.r2018a_check ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>)
endif()
find_package(GTK2 QUIET)
if(GTK2_FOUND)
add_subdirectory(FindGTK2)
endif()
add_test(ExternalProject ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/ExternalProject"
......
......@@ -339,8 +339,7 @@ if(PKG_CONFIG_FOUND)
add_RunCMake_test(FindPkgConfig)
endif()
find_package(GTK2 QUIET)
if (GTK2_FOUND)
if(CMake_TEST_FindGTK2)
add_RunCMake_test(FindGTK2)
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment