mirror of https://github.com/Kylart/KawAnime.git
Now asking for cpp14
This commit is contained in:
parent
6327f4dc90
commit
c3d8c463b7
|
@ -9,11 +9,12 @@ set(CMAKE_BUILD_TYPE Release)
|
|||
|
||||
# Windows things...
|
||||
if (MSVC_VERSION GREATER_EQUAL "1900")
|
||||
include(CheckCXXCompilerFlag)
|
||||
CHECK_CXX_COMPILER_FLAG("/std:c++latest" _cpp_latest_flag_supported)
|
||||
if (_cpp_latest_flag_supported)
|
||||
add_compile_options("/std:c++14")
|
||||
endif()
|
||||
message("MSVC 19 detected (${MSVC_VERSION}), setting flags")
|
||||
include(CheckCXXCompilerFlag)
|
||||
CHECK_CXX_COMPILER_FLAG("/std:c++14" _cpp_14_flag_supported)
|
||||
if (_cpp_14_flag_supported)
|
||||
add_compile_options("/std:c++14")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# LibGCrypt
|
||||
|
|
Loading…
Reference in New Issue