mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-05 05:38:16 +02:00
make the def handling simpler with cmake, we don't need to specify the library name anyway
This commit is contained in:
parent
8ba739fb1a
commit
7487915ff4
1 changed files with 4 additions and 6 deletions
|
|
@ -270,15 +270,13 @@ if(splitlib AND MSVC)
|
|||
endif(MSVC_IDE)
|
||||
else(splitlib AND MSVC)
|
||||
# all code into one library
|
||||
if(MSVC)
|
||||
list(APPEND libdbus_SOURCES ${DBUS_DIR}/dbus-1.def)
|
||||
endif(MSVC)
|
||||
|
||||
add_library(dbus-1 ${DBUS_LIB_TYPE} ${libdbus_SOURCES} ${libdbus_HEADERS} )
|
||||
target_link_libraries(dbus-1 ${LIBS})
|
||||
|
||||
if(MSVC)
|
||||
set_target_properties(dbus-1 PROPERTIES LINK_FLAGS_RELWITHDEBINFO /def:"${DBUS_DIR}/dbus-1.def.cmake")
|
||||
set_target_properties(dbus-1 PROPERTIES LINK_FLAGS_RELEASE /def:"${DBUS_DIR}/dbus-1.def.cmake")
|
||||
set_target_properties(dbus-1 PROPERTIES LINK_FLAGS_MINSIZEREL /def:"${DBUS_DIR}/dbus-1.def.cmake")
|
||||
set_target_properties(dbus-1 PROPERTIES LINK_FLAGS_DEBUG /def:"${DBUS_DIR}/dbus-1.def.cmake")
|
||||
endif(MSVC)
|
||||
if(MSVC_IDE)
|
||||
project_source_group(${GROUP_CODE} libdbus_SOURCES libdbus_HEADERS)
|
||||
endif(MSVC_IDE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue