mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 10:18:01 +02:00
CMake: set INTERFACE_COMPILE_OPTIONS instead of INTERFACE_COMPILE_DEFINITIONS
DBus1_DEFINITIONS may contain -pthread which will be interpreted as -D-pthread by CMake, making compilation fail.
This commit is contained in:
parent
1bcf396c78
commit
f6f3667bc2
1 changed files with 1 additions and 1 deletions
|
|
@ -77,4 +77,4 @@ add_library(dbus-1 SHARED IMPORTED)
|
|||
set_property(TARGET dbus-1 APPEND PROPERTY IMPORTED_LOCATION ${DBus1_LIBRARY})
|
||||
set_property(TARGET dbus-1 APPEND PROPERTY IMPORTED_IMPLIB ${DBus1_LIBRARY})
|
||||
set_property(TARGET dbus-1 APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${DBus1_INCLUDE_DIRS})
|
||||
set_property(TARGET dbus-1 APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS ${DBus1_DEFINITIONS})
|
||||
set_property(TARGET dbus-1 APPEND PROPERTY INTERFACE_COMPILE_OPTIONS ${DBus1_DEFINITIONS})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue