From dba3e386b0521109c0ce06ab769357baf7388833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Sat, 11 Oct 2014 13:11:47 +0200 Subject: [PATCH] Simplified CMake flags. --- CMakeLists.txt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76525dd..18f9faf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,15 +21,7 @@ cmake_minimum_required(VERSION 2.8.7) project(tox-weechat C) -option(HOME_FOLDER_INSTALL "Install to ~/.weechat/plugins instead of default location." OFF) -if(HOME_FOLDER_INSTALL) - set(INSTALL_PATH "~/.weechat/plugins") -endif() - -if (NOT DEFINED INSTALL_PATH OR "${INSTALL_PATH}" STREQUAL "") - set(INSTALL_PATH "lib/weechat/plugins") -endif() -set(INSTALL_PATH "${INSTALL_PATH}" CACHE PATH "Path to install the plugin binary to.") +set(PLUGIN_PATH "lib/weechat/plugins" CACHE PATH "Path to install the plugin binary to.") add_library(tox MODULE src/twc.c @@ -57,5 +49,5 @@ target_link_libraries(tox sqlite3) # remove lib prefix (libtox.so -> tox.so) set_target_properties(tox PROPERTIES PREFIX "") -install(TARGETS tox DESTINATION "${INSTALL_PATH}") +install(TARGETS tox DESTINATION "${PLUGIN_PATH}")