diff options
author | don bright <hugh.m.bright@gmail.com> | 2011-12-31 23:53:39 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2011-12-31 23:53:39 (GMT) |
commit | 7860d85daa41bc97bc907a7864986dc2df899729 (patch) | |
tree | 34513018ff83204b9fae9de07f8797411eaebcd3 /tests/CMakeLists.txt | |
parent | 807261e01ee26bf54506d0adbeebe9fb683fb316 (diff) |
add -no-strict-aliasing for mingw cross compiles. add lzma lib flag
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e03c39a..e803146 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -13,6 +13,9 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") # Build debug build as default if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE RelWithDebInfo) +endif() + +if(CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing") endif() |