CMAKE_BUILD_TYPE now properly handled and information printed in AboutThisBuild.txt, thanks to greatbull69
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
# 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 ${BUILD_TYPE} UPPER_CMAKE_BUILD_TYPE)
|
||||
string (TOUPPER ${CMAKE_BUILD_TYPE} UPPER_CMAKE_BUILD_TYPE)
|
||||
|
||||
# wee look for the hg command in this paths by order of preference
|
||||
find_file(HG_CMD hg PATHS "/opt/local/bin" "/usr/local/bin" "/usr/bin")
|
||||
find_file(HG_CMD hg)
|
||||
|
||||
if (HG_CMD STREQUAL HG_CMD-NOTFOUND)
|
||||
@@ -27,6 +26,7 @@ add_custom_target (AboutFile ALL
|
||||
COMMAND echo Processor: ${PROC_LABEL} >>${OUT_FILE}
|
||||
COMMAND echo Bit depth: ${PROC_BIT_DEPTH} >>${OUT_FILE}
|
||||
COMMAND echo Gtkmm: V${GTKMM_VERSION} >>${OUT_FILE}
|
||||
COMMAND echo Build type: ${CMAKE_BUILD_TYPE} >>${OUT_FILE}
|
||||
COMMAND echo Build flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${UPPER_CMAKE_BUILD_TYPE}} >>${OUT_FILE}
|
||||
COMMAND echo Link flags: ${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_EXE_LINKER_FLAGS_${UPPER_CMAKE_BUILD_TYPE}} >>${OUT_FILE}
|
||||
COMMAND if [ \"${OPTION_OMP}\" = \"ON\" ] \; then echo OpenMP support: Yes >>${OUT_FILE} \;else echo OpenMP support: No >>${OUT_FILE} \;fi
|
||||
|
Reference in New Issue
Block a user