ENH: move CMAKE_STRICT option to the top

This commit is contained in:
Ken Martin 2007-11-06 14:14:18 -05:00
parent 16ac724c91
commit 8eae7fddf2
2 changed files with 5 additions and 3 deletions

View File

@ -457,6 +457,11 @@ CONFIGURE_FILE(
"${CMAKE_CURRENT_BINARY_DIR}/DartLocal.conf" "${CMAKE_CURRENT_BINARY_DIR}/DartLocal.conf"
COPYONLY) COPYONLY)
OPTION(CMAKE_STRICT
"Perform strict testing to record property and variable access. Can be used to report any undefined properties or variables" OFF)
MARK_AS_ADVANCED(CMAKE_STRICT)
# build the remaining subdirectories # build the remaining subdirectories
SUBDIRS(Source) SUBDIRS(Source)
SUBDIRS(Modules) SUBDIRS(Modules)

View File

@ -1,7 +1,4 @@
# configure the .h file # configure the .h file
OPTION(CMAKE_STRICT
"Perform strict testing to see if ANY properties or variables are used before being defined" OFF)
CONFIGURE_FILE( CONFIGURE_FILE(
"${CMake_SOURCE_DIR}/Source/cmConfigure.cmake.h.in" "${CMake_SOURCE_DIR}/Source/cmConfigure.cmake.h.in"
"${CMake_BINARY_DIR}/Source/cmConfigure.h" "${CMake_BINARY_DIR}/Source/cmConfigure.h"