Author: akhaldi Date: Sat Mar 14 15:47:04 2015 New Revision: 66707
URL: http://svn.reactos.org/svn/reactos?rev=66707&view=rev Log: [CMAKE/GCC] Prevent GCC from searching any of the default directories, except when we're dealing with set_cpp. Now GCC build is on par with the MSVC build in terms of header inclusions.
Modified: trunk/reactos/cmake/CMakeMacros.cmake trunk/reactos/cmake/gcc.cmake
Modified: trunk/reactos/cmake/CMakeMacros.cmake URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/CMakeMacros.cmake?rev... ============================================================================== --- trunk/reactos/cmake/CMakeMacros.cmake [iso-8859-1] (original) +++ trunk/reactos/cmake/CMakeMacros.cmake [iso-8859-1] Sat Mar 14 15:47:04 2015 @@ -72,6 +72,8 @@ if(MSVC) add_definitions(-DNATIVE_CPP_INCLUDE=${REACTOS_SOURCE_DIR}/include/c++) include_directories(${REACTOS_SOURCE_DIR}/include/c++/stlport) + else() + replace_compile_flags("-nostdinc" " ") endif() endif()
Modified: trunk/reactos/cmake/gcc.cmake URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=66707&a... ============================================================================== --- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original) +++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Sat Mar 14 15:47:04 2015 @@ -38,6 +38,10 @@
# Compiler Core add_compile_flags("-pipe -fms-extensions -fno-strict-aliasing") + +# Prevent GCC from searching any of the default directories +add_compile_flags("-nostdinc") + if(GCC_VERSION VERSION_GREATER 4.7) add_compile_flags("-mstackrealign") endif()