mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +00:00
[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:
parent
4583a9f8ee
commit
400db38479
2 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue