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 0d4ea7f + 9378225 commit eaac2dbCopy full SHA for eaac2db
CMakeLists.txt
@@ -75,6 +75,13 @@ Generating build files for OpenShot
75
SO/API/ABI Version: ${SO_VERSION}
76
")
77
78
+#### Work around a GCC < 9 bug with handling of _Pragma() in macros
79
+#### See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55578
80
+if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") AND
81
+ (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "9.0.0"))
82
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-integrated-cpp")
83
+endif()
84
+
85
#### Enable C++11 (for std::shared_ptr support)
86
set(CMAKE_CXX_STANDARD 11)
87
set(CMAKE_CXX_STANDARD_REQUIRED ON)
0 commit comments