Set the C++11 flag when using the Cray compiler
This commit is contained in:
parent
8d45e61f6c
commit
e0ca56bd67
@ -11,6 +11,13 @@ set(gpu-stream_VERSION_MINOR 0)
|
|||||||
|
|
||||||
configure_file(common.h.in common.h)
|
configure_file(common.h.in common.h)
|
||||||
|
|
||||||
|
# If using the Cray compiler, manually add the C++11 flag because setting the
|
||||||
|
# standard through CMake as above doesn't set this flag with Cray
|
||||||
|
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Cray")
|
||||||
|
list(APPEND CMAKE_CXX_FLAGS -hstd=c++11)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
find_package(CUDA 7.0 QUIET)
|
find_package(CUDA 7.0 QUIET)
|
||||||
set(FLAG True)
|
set(FLAG True)
|
||||||
if ("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
|
if ("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user