diff --git a/cmaked/Platform/Linux-dmd.cmake b/cmaked/Platform/Linux-dmd.cmake index f9c3009..abd8114 100644 --- a/cmaked/Platform/Linux-dmd.cmake +++ b/cmaked/Platform/Linux-dmd.cmake @@ -25,7 +25,7 @@ IF(CMAKE_D_BUILD_DOCS) #ENDFOREACH(item) 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_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}") SET (CMAKE_D_FLAGS_RELEASE_INIT "-O -release -inline ${DDOC_FLAGS}") diff --git a/cmaked/Platform/Linux-gdc.cmake b/cmaked/Platform/Linux-gdc.cmake index 8e8af9a..aaa8ecb 100644 --- a/cmaked/Platform/Linux-gdc.cmake +++ b/cmaked/Platform/Linux-gdc.cmake @@ -25,7 +25,7 @@ IF(CMAKE_D_BUILD_DOCS) ENDFOREACH(item) 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_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}") SET (CMAKE_D_FLAGS_RELEASE_INIT "-O3 -fomit-frame-pointer -fweb -frelease -finline-functions ${DDOC_FLAGS}") diff --git a/cmaked/Platform/Windows-dmd.cmake b/cmaked/Platform/Windows-dmd.cmake index f87e778..1639f4d 100644 --- a/cmaked/Platform/Windows-dmd.cmake +++ b/cmaked/Platform/Windows-dmd.cmake @@ -25,7 +25,7 @@ IF(CMAKE_D_BUILD_DOCS) #ENDFOREACH(item) 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_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}") SET (CMAKE_D_FLAGS_RELEASE_INIT "-O -release -inline ${DDOC_FLAGS}") diff --git a/cmaked/Platform/Windows-gdc.cmake b/cmaked/Platform/Windows-gdc.cmake index 9b0cf81..30d02ab 100644 --- a/cmaked/Platform/Windows-gdc.cmake +++ b/cmaked/Platform/Windows-gdc.cmake @@ -25,7 +25,7 @@ IF(CMAKE_D_BUILD_DOCS) ENDFOREACH(item) 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_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}") SET (CMAKE_D_FLAGS_RELEASE_INIT "-O3 -fomit-frame-pointer -fweb -frelease -finline-functions ${DDOC_FLAGS}")