Fix build with clang
The wayland protocols need the .c files compiled in gnu90 mode. All known compilers used for kwin support the -std= flag, so setting it unconditionally should be fine REVIEW: 120231
This commit is contained in:
parent
4eadc9daef
commit
b0b9ef4457
1 changed files with 3 additions and 2 deletions
|
@ -50,10 +50,11 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
if ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.8")
|
if ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.8")
|
||||||
message(SEND_ERROR "Version ${CMAKE_CXX_COMPILER_VERSION} of the ${CMAKE_CXX_COMPILER_ID} C++ compiler is not supported. Please use version 4.8 or later.")
|
message(SEND_ERROR "Version ${CMAKE_CXX_COMPILER_VERSION} of the ${CMAKE_CXX_COMPILER_ID} C++ compiler is not supported. Please use version 4.8 or later.")
|
||||||
endif()
|
endif()
|
||||||
# adjusting CMAKE_C_FLAGS to get wayland protocols to compile
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# adjusting CMAKE_C_FLAGS to get wayland protocols to compile
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
|
||||||
|
|
||||||
find_package(Qt5Multimedia QUIET)
|
find_package(Qt5Multimedia QUIET)
|
||||||
set_package_properties(Qt5Multimedia PROPERTIES
|
set_package_properties(Qt5Multimedia PROPERTIES
|
||||||
PURPOSE "Runtime-only dependency for effect video playback"
|
PURPOSE "Runtime-only dependency for effect video playback"
|
||||||
|
|
Loading…
Reference in a new issue