diff options
author | Tomáš Čech <sleep_walker@suse.cz> | 2016-04-28 20:13:26 +0200 |
---|---|---|
committer | Tomáš Čech <sleep_walker@suse.cz> | 2016-04-28 20:13:26 +0200 |
commit | bcdeb721893264d4c9c3471c3955ae20ce1b6e89 (patch) | |
tree | 8e2ed416caff4d0418f44a88d08e848fb8605896 | |
parent | Fix missing include paths (diff) | |
download | sway-bcdeb721893264d4c9c3471c3955ae20ce1b6e89.tar.gz sway-bcdeb721893264d4c9c3471c3955ae20ce1b6e89.tar.zst sway-bcdeb721893264d4c9c3471c3955ae20ce1b6e89.zip |
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.
-rw-r--r-- | common/CMakeLists.txt | 2 | ||||
-rw-r--r-- | protocols/CMakeLists.txt | 2 | ||||
-rw-r--r-- | wayland/CMakeLists.txt | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 901a47f9..9c2c0a99 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt | |||
@@ -3,7 +3,7 @@ include_directories( | |||
3 | ${XKBCOMMON_INCLUDE_DIRS} | 3 | ${XKBCOMMON_INCLUDE_DIRS} |
4 | ) | 4 | ) |
5 | 5 | ||
6 | add_library(sway-common | 6 | add_library(sway-common STATIC |
7 | ipc-client.c | 7 | ipc-client.c |
8 | list.c | 8 | list.c |
9 | log.c | 9 | log.c |
diff --git a/protocols/CMakeLists.txt b/protocols/CMakeLists.txt index 0ff7c704..ff0a2e4d 100644 --- a/protocols/CMakeLists.txt +++ b/protocols/CMakeLists.txt | |||
@@ -22,7 +22,7 @@ WAYLAND_ADD_PROTOCOL_SERVER(proto-server-swaylock | |||
22 | swaylock | 22 | swaylock |
23 | ) | 23 | ) |
24 | 24 | ||
25 | add_library(sway-protocols | 25 | add_library(sway-protocols STATIC |
26 | ${proto-client-xdg-shell} | 26 | ${proto-client-xdg-shell} |
27 | ${proto-client-desktop-shell} | 27 | ${proto-client-desktop-shell} |
28 | ${proto-server-desktop-shell} | 28 | ${proto-server-desktop-shell} |
diff --git a/wayland/CMakeLists.txt b/wayland/CMakeLists.txt index df92db9e..54fe3e23 100644 --- a/wayland/CMakeLists.txt +++ b/wayland/CMakeLists.txt | |||
@@ -5,7 +5,7 @@ include_directories( | |||
5 | ${WAYLAND_INCLUDE_DIR} | 5 | ${WAYLAND_INCLUDE_DIR} |
6 | ) | 6 | ) |
7 | 7 | ||
8 | add_library(sway-wayland | 8 | add_library(sway-wayland STATIC |
9 | buffers.c | 9 | buffers.c |
10 | pango.c | 10 | pango.c |
11 | registry.c | 11 | registry.c |