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.
2 parents ba7da6d + e957a77 commit b4a110eCopy full SHA for b4a110e
libvisual/CMakeLists.txt
@@ -51,6 +51,12 @@ SET(CMAKE_CXX_STANDARD 20)
51
SET(CMAKE_CXX_STANDARD_REQUIRED on)
52
SET(CMAKE_CXX_EXTENSIONS off)
53
54
+# MSVC needs an additional flag to define the right values for __cplusplus.
55
+# CMake couldn't be bothered to do this automatically, so we'll do it ourselves.
56
+IF(MSVC)
57
+ ADD_COMPILE_OPTIONS(/Zc:__cplusplus)
58
+ENDIF()
59
+
60
# Check for Unix specific functions
61
# TODO: Generate error when a required header is missing
62
CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
0 commit comments