Skip to content

Commit 4159c47

Browse files
committed
Update CMakeLists.txt
1 parent 994e34f commit 4159c47

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: external/CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,15 @@ ENDIF()
247247
#=============================================================================
248248

249249
if (UNIX AND NOT APPLE AND (ENABLE_POWER_MANAGEMENT OR ENABLE_PIPEWIRE))
250+
if (USE_SHARED_LIBS)
251+
set (BUILD_SHARED_LIBS ON)
252+
endif()
250253
set(SDBUSCPP_BUILD_DOCS OFF CACHE BOOL "No doc")
251254
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/sdbus-cpp)
252255
set_target_properties(sdbus-c++-objlib PROPERTIES POSITION_INDEPENDENT_CODE ON)
256+
if (USE_SHARED_LIBS)
257+
set (BUILD_SHARED_LIBS OFF)
258+
endif()
253259
endif()
254260

255261
#=============================================================================

0 commit comments

Comments
 (0)