From 138bcd0cfae78ced64b98274adf6531d3161d828 Mon Sep 17 00:00:00 2001 From: Mykyta Holubakha Date: Mon, 16 Jan 2017 01:05:05 +0200 Subject: Unset LD_LIBRARY_PATH, unless specified --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') 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) option(enable-gdk-pixbuf "Use Pixbuf to support more image formats" YES) option(zsh-completions "Zsh shell completions" NO) option(default-wallpaper "Installs the default wallpaper" YES) -set(LD_LIBRARY_PATH "/usr/lib" CACHE STRING "Configures sway's default LD_LIBRARY_PATH") +option(LD_LIBRARY_PATH "Configure sway's default LD_LIBRARY_PATH") -add_definitions(-D_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}") +if (LD_LIBRARY_PATH) + add_definitions(-D_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}") +endif() find_package(JsonC REQUIRED) find_package(PCRE REQUIRED) -- cgit v1.2.3-54-g00ecf