diff --git a/ThirdParty/CMakeLists.txt b/ThirdParty/CMakeLists.txt index 57e0d5402a6ac0cfdd89017924df6f5e381bc88e..db57f5dba843c4c6b94e759d294a1c1705de1c5f 100644 --- a/ThirdParty/CMakeLists.txt +++ b/ThirdParty/CMakeLists.txt @@ -32,7 +32,7 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tetgen/CMakeLists.txt) endif() # vtkdiff -if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/vtkdiff/CMakeLists.txt) +if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/vtkdiff/CMakeLists.txt AND OGS_BUILD_TESTS) add_subdirectory(vtkdiff) install (PROGRAMS $<TARGET_FILE:vtkdiff> DESTINATION bin COMPONENT ogs_extras) endif()