mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 15:59:50 -05:00
Pass -std=c++11 to the C++ compiler unconditionally.
All supported compiler should understand it.
This commit is contained in:
parent
625e9a2547
commit
2e23fb203a
@ -114,17 +114,7 @@ if(WITH_LTO)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
check_cxx_compiler_flag("-std=c++11" CXX11_AVAILABLE)
|
||||
if (CXX11_AVAILABLE)
|
||||
add_gcc_compiler_cxxflags("-std=c++11")
|
||||
else()
|
||||
check_cxx_compiler_flag("-std=c++0x" CXX0X_AVAILABLE)
|
||||
if(CXX0X_AVAILABLE)
|
||||
add_gcc_compiler_cxxflags("-std=c++0x")
|
||||
else()
|
||||
message(FATAL_ERROR "Compiler doesn't support C++11")
|
||||
endif()
|
||||
endif()
|
||||
add_gcc_compiler_cxxflags("-std=c++11")
|
||||
|
||||
if(APPLE)
|
||||
add_gcc_compiler_cxxflags("-stdlib=libc++")
|
||||
|
Loading…
Reference in New Issue
Block a user