/usr/lib/cmake/FindCXX11.cmake is in seqan-dev 1.4.2+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | if(__FIND_CXX11_CMAKE__)
return()
endif()
set(__FIND_CXX11_CMAKE__ TRUE)
# Visual Studio 2008 (vs9) doesn't seem to support C++11 directly (only as TR1)
if (MSVC AND MSVC_VERSION GREATER 1500)
set(CXX11_FOUND 1)
return ()
endif (MSVC AND MSVC_VERSION GREATER 1500)
include(CheckCXXCompilerFlag)
enable_language(CXX)
check_cxx_compiler_flag("-std=c++11" CXX11_FOUND)
if (CXX11_FOUND)
set (CXX11_CXX_FLAGS "-std=c++11")
# Tested on Mac OS X 10.8.2 with XCode 4.6 Command Line Tools
# Clang requires this to find the correct c++11 headers
if (CMAKE_HOST_APPLE AND (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
set (CXX11_CXX_FLAGS "${CXX11_CXX_FLAGS} -stdlib=libc++ -Qunused-arguments")
endif (CMAKE_HOST_APPLE AND (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
else (CXX11_FOUND)
check_cxx_compiler_flag("-std=c++0x" CXX11_FOUND)
if (CXX11_FOUND)
set (CXX11_CXX_FLAGS "-std=c++0x")
endif (CXX11_FOUND)
endif (CXX11_FOUND)
|