* Enable compile and link flags to build info also on Windows and in SCons.
[blender-staging.git] / source / creator / CMakeLists.txt
index 65099761fada5cce02db53ca15f3a1edbd1e872d..27640cbc185f033330103573f2215454f55b97f2 100644 (file)
@@ -95,15 +95,19 @@ IF(WIN32)
 ENDIF(WIN32)
 
 IF(WITH_BUILDINFO)
+       STRING(REPLACE " " "\ " BUILDINFO_CFLAGS ${CMAKE_C_FLAGS})
+       STRING(REPLACE " " "\ " BUILDINFO_CXXFLAGS ${CMAKE_CXX_FLAGS})
+       STRING(REPLACE " " "\ " BUILDINFO_LINKFLAGS ${PLATFORM_LINKFLAGS})
        ADD_DEFINITIONS(
                -DBUILD_DATE="${BUILD_DATE}"
                -DBUILD_TIME="${BUILD_TIME}"
                -DBUILD_REV="${BUILD_REV}"
                -DBUILD_PLATFORM="${CMAKE_SYSTEM_NAME}"
                -DBUILD_TYPE="${CMAKE_BUILD_TYPE}"
-               -DBUILD_CFLAGS="${CMAKE_C_FLAGS}"
-               -DBUILD_CXXFLAGS="${CMAKE_CXX_FLAGS}"
-               -DBUILD_LINKFLAGS="${PLATFORM_LINKFLAGS}"
+               -DBUILD_CFLAGS="${BUILDINFO_CFLAGS}"
+               -DBUILD_CXXFLAGS="${BUILDINFO_CXXFLAGS}"
+               -DBUILD_LINKFLAGS="${BUILDINFO_LINKFLAGS}"
+               -DBUILD_SYSTEM="CMake"
        )
 
        LIST(APPEND EXESRC buildinfo.c)