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