ENH: added CMAKE_STRICT option for var and property checking
This commit is contained in:
parent
1de1f4bb83
commit
236d1ebf56
|
@ -1,4 +1,7 @@
|
|||
# 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(
|
||||
"${CMake_SOURCE_DIR}/Source/cmConfigure.cmake.h.in"
|
||||
"${CMake_BINARY_DIR}/Source/cmConfigure.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#cmakedefine CMAKE_NO_ANSI_FOR_SCOPE
|
||||
#cmakedefine HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE
|
||||
#cmakedefine HAVE_UNSETENV
|
||||
#cmakedefine CMAKE_STRICT
|
||||
#define CMAKE_ROOT_DIR "${CMake_SOURCE_DIR}"
|
||||
#define CMAKE_BUILD_DIR "${CMake_BINARY_DIR}"
|
||||
#define CMAKE_PREFIX "${CMAKE_INSTALL_PREFIX}"
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
#include "cmSystemTools.h"
|
||||
#include "cmake.h"
|
||||
|
||||
// define STRICT to get checking of all set and get property calls
|
||||
//#define CMAKE_STRICT
|
||||
|
||||
cmProperty *cmPropertyMap::GetOrCreateProperty(const char *name)
|
||||
{
|
||||
cmPropertyMap::iterator it = this->find(name);
|
||||
|
|
Loading…
Reference in New Issue