Correcting a bug in the cmake process
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# this will generate a target that will never exist, so it will (should) be executed on each build
|
||||
#WARNING: Actually, only Gcc is supported
|
||||
|
||||
string (TOUPPER ${CMAKE_BUILD_TYPE} UPPER_CMAKE_BUILD_TYPE)
|
||||
string (TOUPPER ${BUILD_TYPE} UPPER_CMAKE_BUILD_TYPE)
|
||||
|
||||
set (OUT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/AboutThisBuild.txt")
|
||||
set (VERSION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/rtgui/version.h")
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# this will generate a target that will never exist, so it will (should) be executed on each build
|
||||
#WARNING: Actually, only Gcc is supported
|
||||
|
||||
string (TOUPPER ${CMAKE_BUILD_TYPE} UPPER_CMAKE_BUILD_TYPE)
|
||||
string (TOUPPER ${BUILD_TYPE} UPPER_CMAKE_BUILD_TYPE)
|
||||
|
||||
set (OUT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/AboutThisBuild.txt")
|
||||
set (VERSION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/rtgui/version.h")
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# this will generate a target that will never exist, so it will (should) be executed on each build
|
||||
#WARNING: Actually, only Gcc is supported
|
||||
|
||||
string (TOUPPER ${CMAKE_BUILD_TYPE} UPPER_CMAKE_BUILD_TYPE)
|
||||
string (TOUPPER ${BUILD_TYPE} UPPER_CMAKE_BUILD_TYPE)
|
||||
|
||||
set (OUT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/AboutThisBuild.txt")
|
||||
set (VERSION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/rtgui/version.h")
|
||||
|
@@ -146,6 +146,7 @@ elseif (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
endif (CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
|
||||
#generating AboutThisBuild.txt
|
||||
set (BUILD_TYPE CMAKE_BUILD_TYPE)
|
||||
if (WIN32)
|
||||
include (About-Windows.cmake)
|
||||
elseif (APPLE)
|
||||
|
Reference in New Issue
Block a user