[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.

svn path=/trunk/; revision=66707
This commit is contained in:
Amine Khaldi 2015-03-14 15:47:04 +00:00
parent 4583a9f8ee
commit 400db38479
2 changed files with 6 additions and 0 deletions

View file

@ -72,6 +72,8 @@ macro(set_cpp)
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()

View file

@ -38,6 +38,10 @@ endif()
# 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()