From 2ea20c66b6aba983046a630a4fb678b2ead5edba Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 29 Jan 2011 15:02:53 +0000 Subject: [PATCH] [FRAMEBUF_NEW] Fix build with MSVC svn path=/branches/cmake-bringup/; revision=50557 --- drivers/video/displays/framebuf_new/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/video/displays/framebuf_new/CMakeLists.txt b/drivers/video/displays/framebuf_new/CMakeLists.txt index 005b5bf23c8..d78771398ae 100644 --- a/drivers/video/displays/framebuf_new/CMakeLists.txt +++ b/drivers/video/displays/framebuf_new/CMakeLists.txt @@ -13,7 +13,9 @@ list(APPEND SOURCE add_library(framebuf_new SHARED ${CMAKE_CURRENT_BINARY_DIR}/framebuf_new_driver.h.gch ${SOURCE}) if(ARCH MATCHES i386) - if(NOT MSVC) + if(MSVC) + set_target_properties(framebuf_new PROPERTIES COMPILE_FLAGS "/Gz") + else() set_target_properties(framebuf_new PROPERTIES COMPILE_FLAGS "-mrtd -fno-builtin") endif() endif()