Эх сурвалжийг харах

T20L8071 #comment cmakelist.txt 将测试默认设为关闭状态

gifur 5 жил өмнө
parent
commit
5ff4c80b2f
2 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 1 1
      CMakeLists.txt
  2. 1 1
      CMakeSettings.json

+ 1 - 1
CMakeLists.txt

@@ -29,7 +29,7 @@ project(RvcFramework)
 
 set(CMAKE_CXX_STANDARD 11)
 
-option(BUILD_TESTING "Build the project tests." ON)
+option(BUILD_TESTING "Build the project test case." OFF)
 option(INSTALL_INCLUDE_FILES "Enable installation of include header file or third_party" ON)
 
 # 

+ 1 - 1
CMakeSettings.json

@@ -18,7 +18,7 @@
       "configurationType": "Debug",
       "buildRoot": "${projectDir}\\out\\build\\${name}",
       "installRoot": "${projectDir}\\out\\install\\${name}",
-      "cmakeCommandArgs": "",
+      "cmakeCommandArgs": "-D BUILD_TESTING=ON",
       "buildCommandArgs": "",
       "ctestCommandArgs": "-C Debug",
       "inheritEnvironments": [ "msvc_x86" ],