diff options
| author | Bryan Galdrikian <[email protected]> | 2018-05-31 11:36:08 -0700 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2018-05-31 11:36:08 -0700 |
| commit | 7115f60b91b5717d90f643fd692010905c7004db (patch) | |
| tree | effd68c6978751c517d54c2f2bb5bb6e7dc93e18 /test/compiler/cmake/linux/CMakeLists.txt | |
| parent | Updating BlastTool zip (diff) | |
| download | blast-1.1.3_rc1.tar.xz blast-1.1.3_rc1.zip | |
Blast 1.1.3. See docs/release_notes.txt.v1.1.3_rc1
Diffstat (limited to 'test/compiler/cmake/linux/CMakeLists.txt')
| -rwxr-xr-x[-rw-r--r--] | test/compiler/cmake/linux/CMakeLists.txt | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/test/compiler/cmake/linux/CMakeLists.txt b/test/compiler/cmake/linux/CMakeLists.txt index 03383f3..63dae8d 100644..100755 --- a/test/compiler/cmake/linux/CMakeLists.txt +++ b/test/compiler/cmake/linux/CMakeLists.txt @@ -1,32 +1,32 @@ -#Platform specific compile flags and project includes - -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") -SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -fno-strict-aliasing") - -SET(BLASTTESTS_SLN_COMPILE_DEFS) -#NvBlastExt doesn't have the _CONSOLE flag - -SET(BLASTTESTS_SLN_DEBUG_COMPILE_DEFS _DEBUG;NV_DEBUG=1;) -SET(BLASTTESTS_SLN_CHECKED_COMPILE_DEFS NDEBUG;NV_CHECKED=1;) -SET(BLASTTESTS_SLN_PROFILE_COMPILE_DEFS NDEBUG;NV_PROFILE=1;) -SET(BLASTTESTS_SLN_RELEASE_COMPILE_DEFS NDEBUG;) - -SET(CMAKE_EXECUTABLE_SUFFIX ".elf") - - -# Include all of the projects -INCLUDE(${PROJECT_CMAKE_FILES_DIR}/BlastUnitTests.cmake) -INCLUDE(${PROJECT_CMAKE_FILES_DIR}/BlastPerfTests.cmake) - - +#Platform specific compile flags and project includes
+
+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")
+SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -fno-strict-aliasing")
+
+SET(BLASTTESTS_SLN_COMPILE_DEFS)
+#NvBlastExt doesn't have the _CONSOLE flag
+
+SET(BLASTTESTS_SLN_DEBUG_COMPILE_DEFS _DEBUG;NV_DEBUG=1;)
+SET(BLASTTESTS_SLN_CHECKED_COMPILE_DEFS NDEBUG;NV_CHECKED=1;)
+SET(BLASTTESTS_SLN_PROFILE_COMPILE_DEFS NDEBUG;NV_PROFILE=1;)
+SET(BLASTTESTS_SLN_RELEASE_COMPILE_DEFS NDEBUG;)
+
+SET(CMAKE_EXECUTABLE_SUFFIX ".elf")
+
+
+# Include all of the projects
+INCLUDE(${PROJECT_CMAKE_FILES_DIR}/BlastUnitTests.cmake)
+INCLUDE(${PROJECT_CMAKE_FILES_DIR}/BlastPerfTests.cmake)
+
+
|