Use lowercases in src/CMakeLists.txt
This commit is contained in:
parent
0c8917886a
commit
30e34528f6
1 changed files with 2 additions and 5 deletions
|
@ -32,14 +32,11 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||||
message(FATAL_ERROR "${PROJECT_NAME} requires g++ 4.8 or greater.")
|
message(FATAL_ERROR "${PROJECT_NAME} requires g++ 4.8 or greater.")
|
||||||
endif ()
|
endif ()
|
||||||
elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||||
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
# In OSX, clang requires "-stdlib=libc++" to support C++11
|
# In OSX, clang requires "-stdlib=libc++" to support C++11
|
||||||
IF(EXISTS "/usr/local/Cellar/libcxx/3.3/lib/c++/v1")
|
|
||||||
include_directories(/usr/local/Cellar/libcxx/3.3/lib/c++/v1)
|
|
||||||
ENDIF()
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
||||||
set(LEAN_EXTRA_LINKER_FLAGS "-stdlib=libc++")
|
set(LEAN_EXTRA_LINKER_FLAGS "-stdlib=libc++")
|
||||||
ENDIF ()
|
endif ()
|
||||||
else ()
|
else ()
|
||||||
message(FATAL_ERROR "Your C++ compiler does not support C++11.")
|
message(FATAL_ERROR "Your C++ compiler does not support C++11.")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
Loading…
Reference in a new issue