浏览代码

Rename CMake option BUILD_TESTING to protobuf_BUILD_TESTS

Konstantin Podsvirov 10 年之前
父节点
当前提交
673d32e093
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      cmake/CMakeLists.txt

+ 3 - 3
cmake/CMakeLists.txt

@@ -9,7 +9,7 @@ cmake_policy(SET CMP0022 NEW)
 
 
 # Options
 # Options
 option(protobuf_VERBOSE "Enable for verbose output" OFF)
 option(protobuf_VERBOSE "Enable for verbose output" OFF)
-option(BUILD_TESTING "Build tests" ON)
+option(protobuf_BUILD_TESTS "Build tests" ON)
 option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
 option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
 option(protobuf_MSVC_STATIC_RUNTIME "Link static runtime libraries" ON)
 option(protobuf_MSVC_STATIC_RUNTIME "Link static runtime libraries" ON)
 if (MSVC)
 if (MSVC)
@@ -136,8 +136,8 @@ include(libprotobuf.cmake)
 include(libprotoc.cmake)
 include(libprotoc.cmake)
 include(protoc.cmake)
 include(protoc.cmake)
 
 
-if (BUILD_TESTING)
+if (protobuf_BUILD_TESTS)
   include(tests.cmake)
   include(tests.cmake)
-endif (BUILD_TESTING)
+endif (protobuf_BUILD_TESTS)
 
 
 include(install.cmake)
 include(install.cmake)