From bcdeb721893264d4c9c3471c3955ae20ce1b6e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= Date: Thu, 28 Apr 2016 20:13:26 +0200 Subject: [PATCH] Explicitly mark static linking in CMake When no type is given, it depends on BUILD_SHARED_LIBS value which is not desired in this case. --- common/CMakeLists.txt | 2 +- protocols/CMakeLists.txt | 2 +- wayland/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 901a47f98..9c2c0a998 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -3,7 +3,7 @@ include_directories( ${XKBCOMMON_INCLUDE_DIRS} ) -add_library(sway-common +add_library(sway-common STATIC ipc-client.c list.c log.c diff --git a/protocols/CMakeLists.txt b/protocols/CMakeLists.txt index 0ff7c704f..ff0a2e4d0 100644 --- a/protocols/CMakeLists.txt +++ b/protocols/CMakeLists.txt @@ -22,7 +22,7 @@ WAYLAND_ADD_PROTOCOL_SERVER(proto-server-swaylock swaylock ) -add_library(sway-protocols +add_library(sway-protocols STATIC ${proto-client-xdg-shell} ${proto-client-desktop-shell} ${proto-server-desktop-shell} diff --git a/wayland/CMakeLists.txt b/wayland/CMakeLists.txt index df92db9ec..54fe3e23c 100644 --- a/wayland/CMakeLists.txt +++ b/wayland/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories( ${WAYLAND_INCLUDE_DIR} ) -add_library(sway-wayland +add_library(sway-wayland STATIC buffers.c pango.c registry.c