Skip to content

Commit eaac2db

Browse files
authored
Merge pull request #254 from ferdnyc/no-inline-cpp
Add -no-integrated-cpp for G++ < 9
2 parents 0d4ea7f + 9378225 commit eaac2db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ Generating build files for OpenShot
7575
SO/API/ABI Version: ${SO_VERSION}
7676
")
7777

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+
7885
#### Enable C++11 (for std::shared_ptr support)
7986
set(CMAKE_CXX_STANDARD 11)
8087
set(CMAKE_CXX_STANDARD_REQUIRED ON)

0 commit comments

Comments
 (0)