(cherry picked from commit a46d047f9466c6f16597755bb7c771a9d1a147f2) (cherry picked from commit bde36062b7a0bf621086e73a5d419cd8637e9e96)
29 lines
692 B
CMake
29 lines
692 B
CMake
# Set build-directive (used in core to tell which buildtype we used)
|
|
target_compile_definitions(trinity-compile-option-interface
|
|
INTERFACE
|
|
-D_BUILD_DIRECTIVE="$<CONFIG>")
|
|
|
|
if(PLATFORM EQUAL 32)
|
|
target_compile_options(trinity-compile-option-interface
|
|
INTERFACE
|
|
-axSSE2)
|
|
else()
|
|
target_compile_options(trinity-compile-option-interface
|
|
INTERFACE
|
|
-xSSE2)
|
|
endif()
|
|
|
|
if(WITH_WARNINGS)
|
|
target_compile_options(trinity-warning-interface
|
|
INTERFACE
|
|
-w1)
|
|
message(STATUS "ICC: All warnings enabled")
|
|
endif()
|
|
|
|
if(WITH_COREDEBUG)
|
|
target_compile_options(trinity-compile-option-interface
|
|
INTERFACE
|
|
-g)
|
|
message(STATUS "ICC: Debug-flag set (-g)")
|
|
endif()
|