Add debug / release version info to compiler flags
This commit is contained in:
parent
e4822bbb6a
commit
e3884c9671
4 changed files with 4 additions and 4 deletions
|
@ -25,7 +25,7 @@ IF(CMAKE_D_BUILD_DOCS)
|
||||||
#ENDFOREACH(item)
|
#ENDFOREACH(item)
|
||||||
ENDIF(CMAKE_D_BUILD_DOCS)
|
ENDIF(CMAKE_D_BUILD_DOCS)
|
||||||
|
|
||||||
SET (CMAKE_D_FLAGS_INIT "-version=Posix ${DSTDLIB_FLAGS} -I$ENV{D_PATH}/include -I$ENV{D_PATH}/import")
|
SET (CMAKE_D_FLAGS_INIT "-version=Posix -version=${CMAKE_BUILD_TYPE}Build ${DSTDLIB_FLAGS} -I$ENV{D_PATH}/include -I$ENV{D_PATH}/import")
|
||||||
SET (CMAKE_D_FLAGS_DEBUG_INIT "-g ${DDOC_FLAGS}")
|
SET (CMAKE_D_FLAGS_DEBUG_INIT "-g ${DDOC_FLAGS}")
|
||||||
# SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}")
|
# SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}")
|
||||||
SET (CMAKE_D_FLAGS_RELEASE_INIT "-O -release -inline ${DDOC_FLAGS}")
|
SET (CMAKE_D_FLAGS_RELEASE_INIT "-O -release -inline ${DDOC_FLAGS}")
|
||||||
|
|
|
@ -25,7 +25,7 @@ IF(CMAKE_D_BUILD_DOCS)
|
||||||
ENDFOREACH(item)
|
ENDFOREACH(item)
|
||||||
ENDIF(CMAKE_D_BUILD_DOCS)
|
ENDIF(CMAKE_D_BUILD_DOCS)
|
||||||
|
|
||||||
SET (CMAKE_D_FLAGS_INIT "-fversion=Posix ${DSTDLIB_FLAGS}")
|
SET (CMAKE_D_FLAGS_INIT "-fversion=Posix -fversion=${CMAKE_BUILD_TYPE}Build ${DSTDLIB_FLAGS}")
|
||||||
SET (CMAKE_D_FLAGS_DEBUG_INIT "-g ${DDOC_FLAGS}")
|
SET (CMAKE_D_FLAGS_DEBUG_INIT "-g ${DDOC_FLAGS}")
|
||||||
SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}")
|
SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}")
|
||||||
SET (CMAKE_D_FLAGS_RELEASE_INIT "-O3 -fomit-frame-pointer -fweb -frelease -finline-functions ${DDOC_FLAGS}")
|
SET (CMAKE_D_FLAGS_RELEASE_INIT "-O3 -fomit-frame-pointer -fweb -frelease -finline-functions ${DDOC_FLAGS}")
|
||||||
|
|
|
@ -25,7 +25,7 @@ IF(CMAKE_D_BUILD_DOCS)
|
||||||
#ENDFOREACH(item)
|
#ENDFOREACH(item)
|
||||||
ENDIF(CMAKE_D_BUILD_DOCS)
|
ENDIF(CMAKE_D_BUILD_DOCS)
|
||||||
|
|
||||||
SET (CMAKE_D_FLAGS_INIT "-version=Win ${DSTDLIB_FLAGS}")
|
SET (CMAKE_D_FLAGS_INIT "-version=Win -version=${CMAKE_BUILD_TYPE}Build ${DSTDLIB_FLAGS}")
|
||||||
SET (CMAKE_D_FLAGS_DEBUG_INIT "-g ${DDOC_FLAGS}")
|
SET (CMAKE_D_FLAGS_DEBUG_INIT "-g ${DDOC_FLAGS}")
|
||||||
# SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}")
|
# SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}")
|
||||||
SET (CMAKE_D_FLAGS_RELEASE_INIT "-O -release -inline ${DDOC_FLAGS}")
|
SET (CMAKE_D_FLAGS_RELEASE_INIT "-O -release -inline ${DDOC_FLAGS}")
|
||||||
|
|
|
@ -25,7 +25,7 @@ IF(CMAKE_D_BUILD_DOCS)
|
||||||
ENDFOREACH(item)
|
ENDFOREACH(item)
|
||||||
ENDIF(CMAKE_D_BUILD_DOCS)
|
ENDIF(CMAKE_D_BUILD_DOCS)
|
||||||
|
|
||||||
SET (CMAKE_D_FLAGS_INIT "-fversion=Win ${DSTDLIB_FLAGS}")
|
SET (CMAKE_D_FLAGS_INIT "-fversion=Win -fversion=${CMAKE_BUILD_TYPE}Build ${DSTDLIB_FLAGS}")
|
||||||
SET (CMAKE_D_FLAGS_DEBUG_INIT "-g ${DDOC_FLAGS}")
|
SET (CMAKE_D_FLAGS_DEBUG_INIT "-g ${DDOC_FLAGS}")
|
||||||
SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}")
|
SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}")
|
||||||
SET (CMAKE_D_FLAGS_RELEASE_INIT "-O3 -fomit-frame-pointer -fweb -frelease -finline-functions ${DDOC_FLAGS}")
|
SET (CMAKE_D_FLAGS_RELEASE_INIT "-O3 -fomit-frame-pointer -fweb -frelease -finline-functions ${DDOC_FLAGS}")
|
||||||
|
|
Loading…
Reference in a new issue