From e20a0a30eea5a2fce9a92862a01f461996bdc8fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Fri, 8 Oct 2010 13:47:39 +0000 Subject: [PATCH] [CMAKE] - Use stlport specific includes only for c++ source files - remove linking to ntdll, kernel32 and oldnames for mingw_common svn path=/branches/cmake-bringup/; revision=49050 --- CMakeLists.txt | 2 -- gcc.cmake | 3 +++ lib/3rdparty/mingw/CMakeLists.txt | 4 ++-- lib/3rdparty/stlport/CMakeLists.txt | 2 ++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c76289b1f86..6536f27bb35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,8 +92,6 @@ include_directories(include/ndk) include_directories(include/reactos) include_directories(include/reactos/libs) -include_directories(BEFORE lib/3rdparty/stlport/stlport) - add_subdirectory(include/psdk) add_subdirectory(include/dxsdk) add_subdirectory(include/reactos/idl) diff --git a/gcc.cmake b/gcc.cmake index f34ef5af91e..874af699187 100644 --- a/gcc.cmake +++ b/gcc.cmake @@ -17,6 +17,9 @@ 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 ") diff --git a/lib/3rdparty/mingw/CMakeLists.txt b/lib/3rdparty/mingw/CMakeLists.txt index 6ed1c24fbf5..2dc9e035492 100644 --- a/lib/3rdparty/mingw/CMakeLists.txt +++ b/lib/3rdparty/mingw/CMakeLists.txt @@ -42,8 +42,8 @@ add_library(mingw_common ${MINGW_COMMON_SOURCE}) if(NOT MSVC) target_link_libraries(mingw_common) - add_importlibs(mingw_common kernel32 ntdll oldnames) - add_dependencies(mingw_common oldnames) +# add_importlibs(mingw_common kernel32 ntdll oldnames) +# add_dependencies(mingw_common oldnames) endif(NOT MSVC) set_target_properties(mingw_common PROPERTIES COMPILE_DEFINITIONS _M_CEE_PURE) diff --git a/lib/3rdparty/stlport/CMakeLists.txt b/lib/3rdparty/stlport/CMakeLists.txt index b8222ddea93..e618ce20a67 100644 --- a/lib/3rdparty/stlport/CMakeLists.txt +++ b/lib/3rdparty/stlport/CMakeLists.txt @@ -4,6 +4,8 @@ add_definitions(-D_STLP_USE_EXCEPTIONS) +include_directories(BEFORE ./stlport) + list(APPEND SOURCE src/allocators.cpp src/bitset.cpp -- 2.17.1