We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3a7f5 commit 7e7f6e0Copy full SHA for 7e7f6e0
CMakeLists.txt
@@ -48,7 +48,11 @@ endif()
48
# that we end up not being able to turn deprecation warnings into
49
# errors. Instead, since we know all our platforms offer the feature,
50
# just hard enable it here.
51
-set (COMPILER_HAS_DEPRECATED_ATTR true)
+if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
52
+ set(COMPILER_HAS_DEPRECATED true)
53
+else()
54
+ set(COMPILER_HAS_DEPRECATED_ATTR true)
55
+endif()
56
57
set (CMAKE_SKIP_BUILD_RPATH false)
58
set (CMAKE_BUILD_WITH_INSTALL_RPATH false)
0 commit comments