From 2d93fd22ac0d8c103c536996de6ac5453a419082 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Thu, 14 Oct 2010 20:16:57 +0000 Subject: [PATCH] [CMAKE] - include stlport directory in set_cpp macro - move set_cpp macro where it belongs : it's generic enough to go to CMakeMacros.cmake svn path=/branches/cmake-bringup/; revision=49148 --- CMakeMacros.cmake | 7 ++++++- base/shell/explorer/CMakeLists.txt | 5 +++-- gcc.cmake | 7 ------- lib/3rdparty/stlport/CMakeLists.txt | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/CMakeMacros.cmake b/CMakeMacros.cmake index b006cca20e3..24bd8906176 100644 --- a/CMakeMacros.cmake +++ b/CMakeMacros.cmake @@ -138,4 +138,9 @@ MACRO(add_minicd FILENAME _dir _nameoncd) add_custom_target(${_nameoncd}_minicd DEPENDS ${BOOTCD_DIR}/${_dir}/${_nameoncd}) add_dependencies(minicd ${_nameoncd}_minicd) -ENDMACRO(add_minicd) +ENDMACRO(add_minicd) + +macro(set_cpp) + include_directories(BEFORE ${REACTOS_SOURCE_DIR}/lib/3rdparty/stlport/stlport) + set(IS_CPP 1) +endmacro() diff --git a/base/shell/explorer/CMakeLists.txt b/base/shell/explorer/CMakeLists.txt index e9156b12780..cde08af7ad5 100644 --- a/base/shell/explorer/CMakeLists.txt +++ b/base/shell/explorer/CMakeLists.txt @@ -4,8 +4,9 @@ add_subdirectory(notifyhook) set_unicode() #NOTE : explorer doesn't follow standard c++, and so doesn't compile with stlport headers -#I'm not willing to do it if explorer_new is hanging around -set(CMAKE_CXX_COMPILE_OBJECT " -o -c ") +#I'm not willing to do it if explorer_new is hanging around. +#jgardou +#set_cpp() add_definitions(-DWIN32) add_definitions(-D__WINDRES__) diff --git a/gcc.cmake b/gcc.cmake index f737952503e..dae30adedc9 100644 --- a/gcc.cmake +++ b/gcc.cmake @@ -17,9 +17,6 @@ set(CMAKE_EXE_LINKER_FLAGS "-nodefaultlibs -nostdlib -Wl,--enable-auto-image-bas # Compiler Core add_definitions(-pipe -fms-extensions) -# stlport includes -set(CMAKE_CXX_COMPILE_OBJECT " -I${REACTOS_SOURCE_DIR}/lib/3rdparty/stlport/stlport -o -c ") - set(CMAKE_C_CREATE_SHARED_LIBRARY " -o ") set(CMAKE_RC_CREATE_SHARED_LIBRARY " -o ") @@ -123,10 +120,6 @@ macro(set_unicode) set(IS_UNICODE 1) endmacro() -macro(set_cpp) - set(IS_CPP 1) - endmacro() - # Workaround lack of mingw RC support in cmake macro(set_rc_compiler) get_directory_property(defines COMPILE_DEFINITIONS) diff --git a/lib/3rdparty/stlport/CMakeLists.txt b/lib/3rdparty/stlport/CMakeLists.txt index 1627dfcd576..c8435ed59bc 100644 --- a/lib/3rdparty/stlport/CMakeLists.txt +++ b/lib/3rdparty/stlport/CMakeLists.txt @@ -4,7 +4,7 @@ add_definitions(-D_STLP_USE_EXCEPTIONS) -include_directories(BEFORE stlport) +set_cpp() list(APPEND SOURCE src/allocators.cpp -- 2.17.1