diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-06-09 04:49:21 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-06-09 04:49:21 (GMT) |
commit | 49af42cfd0cababceac2dba04ac55bb0e10c2775 (patch) | |
tree | 1a62a75b90af087b0939ffb88e44abd3fa801c3f /tests | |
parent | d27ab64d454c18ebd054c657d0bec9514a82bbd5 (diff) |
a few fixes for netbsd
Diffstat (limited to 'tests')
-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 2781124..4dbe8ce 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -333,6 +333,9 @@ endif() if(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD") include_directories( /usr/pkg/include /usr/X11R7/include ) set(FLEX_EXECUTABLE /usr/pkg/bin/flex) + if(NOT ${CMAKE_CXX_COMPILER} MATCHES ".*clang.*") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") + endif() endif() find_package(FLEX REQUIRED) |