From e39b9f7f45cc726394ae7b1b49883ae057ffdd4e Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sun, 11 Mar 2012 19:01:39 +0000 Subject: [PATCH] [CMAKE] * Temporarily work around the cmake rc handling bug. svn path=/trunk/; revision=56120 --- .../video/displays/framebuf_new/CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/reactos/drivers/video/displays/framebuf_new/CMakeLists.txt b/reactos/drivers/video/displays/framebuf_new/CMakeLists.txt index aca811a5963..deafb6eb122 100644 --- a/reactos/drivers/video/displays/framebuf_new/CMakeLists.txt +++ b/reactos/drivers/video/displays/framebuf_new/CMakeLists.txt @@ -7,16 +7,20 @@ list(APPEND SOURCE palette.c pointer.c screen.c - framebuf_new.rc ${CMAKE_CURRENT_BINARY_DIR}/framebuf_new.def) -add_library(framebuf_new SHARED ${SOURCE}) +add_library(framebuf_new SHARED + ${SOURCE} + framebuf_new.rc) if(ARCH MATCHES i386) + # FIXME: http://www.cmake.org/Bug/view.php?id=12998 if(MSVC) - add_target_compile_flags(framebuf_new "/Gz") + #add_target_compile_flags(framebuf_new "/Gz") + set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/Gz") else() - add_target_compile_flags(framebuf_new "-mrtd -fno-builtin") + #add_target_compile_flags(framebuf_new "-mrtd -fno-builtin") + set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-mrtd -fno-builtin") endif() endif() -- 2.17.1