Skip to content

Commit

Permalink
cmake: try -std=c++0x when -std=c++11 is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
ukoethe committed Jan 28, 2014
1 parent 8fdc951 commit 927d7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/multiarray/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/impex)

if(NOT MSVC)
IF (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7.0")
SET(CMAKE_CXX_FLAGS "-pthread ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS "-pthread -std=c++0x ${CMAKE_CXX_FLAGS}")
else()
SET(CMAKE_CXX_FLAGS "-pthread -std=c++11 ${CMAKE_CXX_FLAGS}")
endif()
Expand Down

0 comments on commit 927d7d9

Please sign in to comment.