Skip to content
This repository was archived by the owner on Jun 12, 2019. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ else()
message(STATUS "Checking compiler flags for C++11 support.")
include(CheckCXXCompilerFlag)

check_cxx_compiler_flag("-std=c++11" COMPILER_SUPPORTS_CXX11)
check_cxx_compiler_flag("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(NOT MSVC)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
endif(NOT MSVC)

if(COMPILER_SUPPORTS_CXX11)
if(MSVC)
if(NOT CMAKE_CXX_STANDARD)
message(STATUS "Something's wrong with your compiler dude.")
endif(NOT CMAKE_CXX_STANDARD)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my spacing...

elseif(COMPILER_SUPPORTS_CXX11)
message(STATUS "C++11 is supported.")

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand Down