diff options
| author | Petr Mrázek | 2011-11-06 21:16:16 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2011-11-06 21:16:16 +0100 |
| commit | 2c27119d85fa1db25dd3a5fe4abf04fd3fbc4a51 (patch) | |
| tree | 4aa465dcef9ebe8b994cb1be2bdbc41cb060d77c /CMakeLists.txt | |
| parent | 46f55c15774c05955c7c27b9aeb8475de9de0da9 (diff) | |
| download | dfhack-2c27119d85fa1db25dd3a5fe4abf04fd3fbc4a51.tar.gz dfhack-2c27119d85fa1db25dd3a5fe4abf04fd3fbc4a51.tar.bz2 dfhack-2c27119d85fa1db25dd3a5fe4abf04fd3fbc4a51.tar.xz | |
Set CXXFLAGS properly to ensure compatibility with i686 systems.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 63914d77..fd73f858 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,18 @@ SET(DFHACK_DEVDOC_DESTINATION hack) OPTION(BUILD_LIBRARY "Build the library that goes into DF." ON) OPTION(BUILD_PLUGINS "Build the plugins." ON) +## flags for GCC +# default to hidden symbols +# build 32bit +# ensure compatibility with older CPUs +# enable C++11 features +IF(UNIX) + add_definitions(-DLINUX_BUILD) + SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall") + SET(CMAKE_CXX_FLAGS "-fvisibility=hidden -m32 -march=i686 -std=c++0x") + SET(CMAKE_C_FLAGS "-fvisibility=hidden -m32 -march=i686") +ENDIF() + #add depends to include path INCLUDE_DIRECTORIES ( library/depends ) |
