Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Contacts
Commits
42e50bdb
Commit
42e50bdb
authored
Apr 16, 2021
by
Ömer Fadıl Usta
😊
Committed by
Laurent Montel
Apr 17, 2021
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
42e50bdb
...
...
@@ -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 ###########
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment