mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user