Legends-of-Azeroth-Pandaria-5.4.8
29 строк · 981.0 Байт
1# Copyright (C) 2011-2016 Project SkyFire <http://www.projectskyfire.org/
2# Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3#
4# This file is free software; as a special exception the author gives
5# unlimited permission to copy and/or distribute it, with or without
6# modifications, as long as this notice is preserved.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
12# Set build-directive (used in core to tell which buildtype we used)
13add_compile_options(-D_BUILD_DIRECTIVE="$<CONFIG>")
14
15if(PLATFORM EQUAL 32)
16add_compile_options(-axSSE2)
17else()
18add_compile_options(-xSSE2)
19endif()
20
21if( WITH_WARNINGS )
22add_compile_options(-w1)
23message(STATUS "ICC: All warnings enabled")
24endif()
25
26if( WITH_COREDEBUG )
27add_compile_options(-g)
28message(STATUS "ICC: Debug-flag set (-g)")
29endif()
30