Explorar el Código

Merge pull request #3133 from nicolasfella/cmaketest

Remove redundant CMake code
Felix Weilbach hace 4 años
padre
commit
8e3ddcc79c
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  1. 1 6
      CMakeLists.txt

+ 1 - 6
CMakeLists.txt

@@ -5,11 +5,6 @@ project(client)
 
 include(FeatureSummary)
 
-if(UNIT_TESTING)
-    include(CTest)
-    enable_testing()
-endif()
-
 set(BIN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
 
 
@@ -260,8 +255,8 @@ if(BUILD_SHELL_INTEGRATION)
     add_subdirectory(shell_integration)
 endif()
 
-include(CTest)
 if(BUILD_TESTING)
+    include(CTest)
     enable_testing()
     add_subdirectory(test)
 endif()