Commit 42e50bdb authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊 Committed by Laurent Montel
Browse files

Fix for MSVC compile

Without adding /Zc:__cplusplus msvc wont check that values while compile
parent a72c340d
Pipeline #58381 passed with stage
in 11 minutes and 3 seconds
......@@ -62,6 +62,14 @@ find_package(KF5GrantleeTheme ${GRANTLEETHEME_LIB_VERSION} CONFIG REQUIRED)
find_package(Grantlee5 ${GRANTLEE_LIB_VERSION} CONFIG REQUIRED)
############### Compilers flags ###############
if (MSVC)
# This sets the __cplusplus macro to a real value based on the version of C++ specified by
# the /std switch. Without it MSVC keeps reporting C++98, so feature detection doesn't work.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:__cplusplus")
endif()
########### Targets ###########
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment