Skip to content

Commit fd3287b

Browse files
committed
Fix CMake version problem (fixes #55)
1 parent dd2e714 commit fd3287b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
add_library(linuxdeploy-plugin-qt_util OBJECT util.cpp util.h)
1+
# TODO: CMake <= 3.7 (at least!) doesn't allow for using OBJECT libraries with target_link_libraries
2+
add_library(linuxdeploy-plugin-qt_util STATIC util.cpp util.h)
23
target_include_directories(linuxdeploy-plugin-qt_util PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
34
target_link_libraries(linuxdeploy-plugin-qt_util linuxdeploy_core args)
45

src/deployers/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ set(CLASSES
1818
GamepadPluginsDeployer
1919
)
2020

21-
add_library(deployers OBJECT)
21+
# TODO: CMake <= 3.7 (at least!) doesn't allow for using OBJECT libraries with target_link_libraries
22+
add_library(deployers STATIC)
2223

2324
target_link_libraries(deployers PUBLIC linuxdeploy_core linuxdeploy-plugin-qt_util)
2425

0 commit comments

Comments
 (0)