diff options
author | 2017-01-16 13:24:26 -0500 | |
---|---|---|
committer | 2017-01-16 13:24:26 -0500 | |
commit | 2047bb81dcdb311f10e4915f75245768d54137dd (patch) | |
tree | b1dcac22e3b5b7f4da6155598c66681608936c5b /CMakeLists.txt | |
parent | Merge pull request #1024 from willakat/master (diff) | |
parent | Unset LD_LIBRARY_PATH, unless specified (diff) | |
download | sway-2047bb81dcdb311f10e4915f75245768d54137dd.tar.gz sway-2047bb81dcdb311f10e4915f75245768d54137dd.tar.zst sway-2047bb81dcdb311f10e4915f75245768d54137dd.zip |
Merge pull request #1050 from Hummer12007/cmake
Unset LD_LIBRARY_PATH, unless specified
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ea0e3648..74c79075 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -47,9 +47,11 @@ option(enable-swaymsg "Enables the swaymsg utility" YES) | |||
47 | option(enable-gdk-pixbuf "Use Pixbuf to support more image formats" YES) | 47 | option(enable-gdk-pixbuf "Use Pixbuf to support more image formats" YES) |
48 | option(zsh-completions "Zsh shell completions" NO) | 48 | option(zsh-completions "Zsh shell completions" NO) |
49 | option(default-wallpaper "Installs the default wallpaper" YES) | 49 | option(default-wallpaper "Installs the default wallpaper" YES) |
50 | set(LD_LIBRARY_PATH "/usr/lib" CACHE STRING "Configures sway's default LD_LIBRARY_PATH") | 50 | option(LD_LIBRARY_PATH "Configure sway's default LD_LIBRARY_PATH") |
51 | 51 | ||
52 | add_definitions(-D_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}") | 52 | if (LD_LIBRARY_PATH) |
53 | add_definitions(-D_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}") | ||
54 | endif() | ||
53 | 55 | ||
54 | find_package(JsonC REQUIRED) | 56 | find_package(JsonC REQUIRED) |
55 | find_package(PCRE REQUIRED) | 57 | find_package(PCRE REQUIRED) |