aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler/icc
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/compiler/icc')
-rw-r--r--cmake/compiler/icc/settings.cmake22
1 files changed, 16 insertions, 6 deletions
diff --git a/cmake/compiler/icc/settings.cmake b/cmake/compiler/icc/settings.cmake
index 133bc15e59e..563b92d6b9b 100644
--- a/cmake/compiler/icc/settings.cmake
+++ b/cmake/compiler/icc/settings.cmake
@@ -1,18 +1,28 @@
-# Set build-directive (used in core to tell which buildtype we used)
-add_definitions(-D_BUILD_DIRECTIVE="'${CMAKE_BUILD_TYPE}'")
+target_compile_definitions(trinity-compile-option-interface
+ INTERFACE
+ -D_BUILD_DIRECTIVE="${CMAKE_BUILD_TYPE}")
if(PLATFORM EQUAL 32)
- add_definitions(-axSSE2)
+ target_compile_options(trinity-compile-option-interface
+ INTERFACE
+ -axSSE2)
else()
- add_definitions(-xSSE2)
+ target_compile_options(trinity-compile-option-interface
+ INTERFACE
+ -xSSE2)
endif()
if( WITH_WARNINGS )
- add_definitions(-w1)
+ target_compile_options(trinity-warning-interface
+ INTERFACE
+ -w1)
+
message(STATUS "ICC: All warnings enabled")
endif()
if( WITH_COREDEBUG )
- add_definitions(-g)
+ target_compile_options(trinity-compile-option-interface
+ INTERFACE
+ -g)
message(STATUS "ICC: Debug-flag set (-g)")
endif()