CMake: Fail* version number handling fixed

The project version number is now not user-editable anymore, and
custom values get overwritten by force.  Without this change,
CMakeCache.txt stays at the version number it was first instantiated
from.

Change-Id: If9ad1549937dad98db9a0f0eda16ef752e7d74aa
This commit is contained in:
Horst Schirmeier
2015-01-13 14:48:22 +01:00
parent 722715c01f
commit 32e8a679b5

View File

@ -9,7 +9,7 @@ ENABLE_TESTING()
PROJECT(Fail*)
set(PROJECT_VERSION "1.0.1" CACHE STRING "Fail* version number")
set(PROJECT_VERSION "1.0.1" CACHE INTERNAL "Fail* version number" FORCE)
#### Put all resulting library files in <your_build_dir>/lib ####
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)