Fix new way of selecting c++ standard version for CLang
This commit is contained in:
parent
c2c2a6f1dc
commit
907611a422
@ -21,10 +21,10 @@ function(target_activate_cpp14 TARGET)
|
|||||||
message(FATAL_ERROR "Compiler doesn't support C++14")
|
message(FATAL_ERROR "Compiler doesn't support C++14")
|
||||||
endif()
|
endif()
|
||||||
endif(COMPILER_HAS_CPP14_SUPPORT)
|
endif(COMPILER_HAS_CPP14_SUPPORT)
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
||||||
target_compile_options(${TARGET} PUBLIC -stdlib=libc++)
|
|
||||||
endif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
||||||
endif("${CMAKE_VERSION}" VERSION_GREATER "3.1")
|
endif("${CMAKE_VERSION}" VERSION_GREATER "3.1")
|
||||||
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
|
target_compile_options(${TARGET} PUBLIC -stdlib=libc++)
|
||||||
|
endif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
endfunction(target_activate_cpp14)
|
endfunction(target_activate_cpp14)
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user