From 161c6df1cb357434cf8e9d1e0509ea18fd92f1ea Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Sun, 15 Oct 2017 17:46:30 +0200 Subject: [PATCH] Use GNUInstallDirs to let the BINDIR be overriden by the build options --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 697fe7b..79eee64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ cmake_minimum_required (VERSION 3.2) set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") set (CMAKE_CXX_STANDARD 11) +include (GNUInstallDirs) include (${CMAKE_ROOT}/Modules/ExternalProject.cmake) include_directories (${CMAKE_INSTALL_PREFIX}/include) @@ -247,7 +248,7 @@ endforeach (file) ############## install (TARGETS planetblupi - RUNTIME DESTINATION bin + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) install (