Update CMakeLists.txt
cmake version is always greater than 3.8.
This commit is contained in:
@@ -7,11 +7,7 @@ if(NOT DEFINED APPDATA_RELEASE_DATE)
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
else()
|
||||
if(NOT (CMAKE_VERSION VERSION_LESS 3.8.0))
|
||||
string(TIMESTAMP APPDATA_RELEASE_DATE "%Y-%m-%d")
|
||||
else()
|
||||
file(TIMESTAMP "${CMAKE_SOURCE_DIR}/CMakeLists.txt" APPDATA_RELEASE_DATE "%Y-%m-%d")
|
||||
endif()
|
||||
string(TIMESTAMP APPDATA_RELEASE_DATE "%Y-%m-%d")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user