소스 검색

Merge pull request #3133 from nicolasfella/cmaketest

Remove redundant CMake code
Felix Weilbach 4 년 전
부모
커밋
8e3ddcc79c
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  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()