Version: Always define CMake_VERSION_IS_DIRTY to 0 or 1

In cmVersionConfig.h we must define this macro with a value because
clients expect it to have one.  Also ensure that all CMakeLists.txt
code paths have an initialized value.

Reported-by: Stephen Kelly <steveire@gmail.com>
This commit is contained in:
Brad King
2016-08-23 09:09:03 -04:00
parent ef13efab56
commit aec06dd492
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -24,8 +24,6 @@ if(EXISTS ${CMake_SOURCE_DIR}/.git/HEAD)
)
if(dirty)
set(CMake_VERSION_IS_DIRTY 1)
else()
set(CMake_VERSION_IS_DIRTY 0)
endif()
endif()
endif()