mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 10:20:03 +00:00
[CMAKE]
* Add a proper way to enable/disable PSEH3. svn path=/trunk/; revision=60190
This commit is contained in:
parent
8c64e4dd16
commit
61fde33ba7
|
@ -129,10 +129,6 @@ else()
|
||||||
add_definitions(-D_WINKD_=1)
|
add_definitions(-D_WINKD_=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_PSEH3)
|
|
||||||
add_definitions(-D_USE_PSEH3=1)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Version Options
|
# Version Options
|
||||||
add_definitions(-DWINVER=0x502
|
add_definitions(-DWINVER=0x502
|
||||||
-D_WIN32_IE=0x600
|
-D_WIN32_IE=0x600
|
||||||
|
|
|
@ -71,15 +71,8 @@ set(GENERATE_DEPENDENCY_GRAPH FALSE CACHE BOOL
|
||||||
"Whether to create a graphml dependency of dlls.")
|
"Whether to create a graphml dependency of dlls.")
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
|
||||||
set(_PREFAST_ FALSE CACHE BOOL
|
set(_PREFAST_ FALSE CACHE BOOL
|
||||||
"Whether to enable PREFAST while compiling.")
|
"Whether to enable PREFAST while compiling.")
|
||||||
set(_VS_ANALYZE_ FALSE CACHE BOOL
|
set(_VS_ANALYZE_ FALSE CACHE BOOL
|
||||||
"Whether to enable static analysis while compiling.")
|
"Whether to enable static analysis while compiling.")
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
set(USE_PSEH3 FALSE CACHE BOOL
|
|
||||||
"Whether to use the new PSEH3 library (requires GCC 4.5 and newer).")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -9,6 +9,14 @@ if(NOT DEFINED SEPARATE_DBG)
|
||||||
set(SEPARATE_DBG FALSE)
|
set(SEPARATE_DBG FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT DEFINED USE_PSEH3)
|
||||||
|
set(USE_PSEH3 0)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(USE_PSEH3)
|
||||||
|
add_definitions(-D_USE_PSEH3=1)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Compiler Core
|
# Compiler Core
|
||||||
add_compile_flags("-pipe -fms-extensions -fno-strict-aliasing")
|
add_compile_flags("-pipe -fms-extensions -fno-strict-aliasing")
|
||||||
if(GCC_VERSION VERSION_GREATER 4.7)
|
if(GCC_VERSION VERSION_GREATER 4.7)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
|
|
||||||
if (USE_PSEH3)
|
if(USE_PSEH3)
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/pseh)
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/pseh)
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
i386/pseh3.c
|
i386/pseh3.c
|
||||||
|
|
Loading…
Reference in a new issue