diff options
| author | Bryan Galdrikian <[email protected]> | 2017-08-30 20:58:43 -0700 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2017-08-30 20:58:43 -0700 |
| commit | dfd35d59af675144b282a3e0c57ac8b1735977df (patch) | |
| tree | c6716f7c1767f83dfddacdce6d292c8ffbcf3e7d /test | |
| parent | FractureTool: assetToFractureId fix (diff) | |
| download | blast-dfd35d59af675144b282a3e0c57ac8b1735977df.tar.xz blast-dfd35d59af675144b282a3e0c57ac8b1735977df.zip | |
Linux build fixes, corresponding doc changes
Diffstat (limited to 'test')
| -rw-r--r-- | test/compiler/cmake/linux/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/compiler/cmake/linux/CMakeLists.txt b/test/compiler/cmake/linux/CMakeLists.txt index 6f37b5f..03383f3 100644 --- a/test/compiler/cmake/linux/CMakeLists.txt +++ b/test/compiler/cmake/linux/CMakeLists.txt @@ -2,6 +2,13 @@ SET(CMAKE_CXX_FLAGS "-Wextra -fdiagnostics-show-option -fno-rtti -fno-exceptions -m64 -msse2 -mfpmath=sse -fpic -ffast-math -fno-exceptions -fno-rtti -Wno-invalid-offsetof -Wno-unknown-pragmas -Wno-multichar -Wno-sign-compare -std=c++0x") +if (CMAKE_COMPILER_IS_GNUCXX) + #Starting with 6.0 -fPIE is the default and our gtest build can't link with this + if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.0") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-pie") + endif() +endif() + SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -gdwarf-2") SET(CMAKE_CXX_FLAGS_CHECKED "-O3 -g3 -gdwarf-2 -fno-strict-aliasing") SET(CMAKE_CXX_FLAGS_PROFILE "-O3 -fno-strict-aliasing") |