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 3d6958d + 61366ca commit 99fda01Copy full SHA for 99fda01
CMakeLists.txt
@@ -83,6 +83,13 @@ configure_file(include/OpenShotVersion.h.in include/OpenShotVersion.h @ONLY)
83
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/OpenShotVersion.h
84
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libopenshot)
85
86
+#### Work around a GCC < 9 bug with handling of _Pragma() in macros
87
+#### See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55578
88
+if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") AND
89
+ (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "9.0.0"))
90
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-integrated-cpp")
91
+endif()
92
+
93
#### Enable C++11 (for std::shared_ptr support)
94
set(CMAKE_CXX_STANDARD 11)
95
set(CMAKE_CXX_STANDARD_REQUIRED ON)
0 commit comments