diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-10-16 01:14:35 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-10-16 01:14:35 (GMT) |
commit | 7332ec9fe260140ff74506fa2ba95e0a2bbf352e (patch) | |
tree | ab72752cc52e68d1ed77559cdd18d702ffc05b2c /tests/CMakeLists.txt | |
parent | 7735f5510cdc2d396092d04ed98a2dbaec347608 (diff) |
clean up linux changes to fit with win32 changes.
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 593fa1b..35818de 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -27,11 +27,6 @@ if(WIN32_STATIC_BUILD) endif() endif() -# Turn off Eigen SIMD optimization -if(WIN32) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DEIGEN_DONT_ALIGN") -endif() - # Disable warnings if(WIN32) # too long decorated names @@ -53,8 +48,6 @@ if(WIN32) # you have to pass -DCMAKE_VERBOSE_MAKEFILE=ON to cmake when you run it. endif() -# Compilation debugging - # # Build test apps @@ -71,6 +64,12 @@ find_package(Qt4 COMPONENTS QtCore QtGui QtOpenGL REQUIRED) include(${QT_USE_FILE}) # Eigen2 + +# Turn off Eigen SIMD optimization +if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DEIGEN_DONT_ALIGN") +endif() + if (NOT EIGEN2_INCLUDE_DIR) find_path(EIGEN2_INCLUDE_DIR Eigen/Core |