[project] adds a default for missing build number to CMake files

This commit is contained in:
Roman Shevchenko
2018-05-04 15:12:13 +02:00
parent 43810ccfb3
commit 7d2edefefc
3 changed files with 16 additions and 3 deletions
+6 -1
View File
@@ -5,8 +5,13 @@ if(NOT WIN32)
message(FATAL_ERROR "Windows only.")
endif()
set(BUILD_NUMBER $ENV{BUILD_NUMBER})
if (DEFINED ENV{BUILD_NUMBER})
set(BUILD_NUMBER $ENV{BUILD_NUMBER})
else()
set(BUILD_NUMBER 9999)
endif()
string(TIMESTAMP YEAR "%Y")
if(CMAKE_GENERATOR_PLATFORM STREQUAL "x64")
set(FILE_NAME "IdeaWin64")
set(JAVA_HOME $ENV{JDK_18_x64})
+5 -1
View File
@@ -5,7 +5,11 @@ if(NOT WIN32)
message(FATAL_ERROR "Windows only.")
endif()
set(BUILD_NUMBER $ENV{BUILD_NUMBER})
if (DEFINED ENV{BUILD_NUMBER})
set(BUILD_NUMBER $ENV{BUILD_NUMBER})
else()
set(BUILD_NUMBER 9999)
endif()
string(TIMESTAMP YEAR "%Y")
if(CMAKE_GENERATOR_PLATFORM STREQUAL "x64")
set(FILE_NAME "fsnotifier64")
+5 -1
View File
@@ -5,7 +5,11 @@ if(NOT WIN32)
message(FATAL_ERROR "Windows only.")
endif()
set(BUILD_NUMBER $ENV{BUILD_NUMBER})
if (DEFINED ENV{BUILD_NUMBER})
set(BUILD_NUMBER $ENV{BUILD_NUMBER})
else()
set(BUILD_NUMBER 9999)
endif()
string(TIMESTAMP YEAR "%Y")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")