浏览代码

CMake: Declare the variable nearby (#1387)

CMake: Declare the variable nearby
Kang Lin 1 年之前
父节点
当前提交
0fc60d48fa
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      CMakeLists.txt

+ 1 - 2
CMakeLists.txt

@@ -11,8 +11,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
 # TODO: Modify this when the version is released
 # TODO: Modify this when the version is released
 SET(BUILD_VERSION "4.6.2")
 SET(BUILD_VERSION "4.6.2")
 
 
-option(FUZZER "Build oss-fuzz fuzzing" OFF)
-
 # Find Git Version Patch
 # Find Git Version Patch
 IF(EXISTS "${CMAKE_SOURCE_DIR}/.git")
 IF(EXISTS "${CMAKE_SOURCE_DIR}/.git")
     if(NOT GIT)
     if(NOT GIT)
@@ -137,6 +135,7 @@ install(DIRECTORY
     )
     )
 include(cmake/CMakeCPack.cmake)
 include(cmake/CMakeCPack.cmake)
 
 
+option(FUZZER "Build oss-fuzz fuzzing" OFF)
 if(FUZZER)
 if(FUZZER)
     if (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
     if (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
         message(FATAL_ERROR "clang is require for libFuzzer")
         message(FATAL_ERROR "clang is require for libFuzzer")