mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-31 10:39:14 -04: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
1 changed files with 1 additions and 11 deletions
|
@ -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()
|
||||
|
||||
if(APPLE)
|
||||
add_gcc_compiler_cxxflags("-stdlib=libc++")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue