From bf16c2d00fbcfb8cdb092ee95d09f5181fcaf1b7 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 26 Feb 2021 16:09:24 +0530 Subject: Include GNUInstallDirs earlier in CMakeLists. * CMakeLists.txt: Include GNUInstallDirs earlier. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc926c6..4aeba53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,8 @@ find_program(INDENT NAMES indent) pkg_check_modules(GUILE guile-3.0) pkg_get_variable(GUILD guile-3.0 guild) +include(GNUInstallDirs) + function(change_extension var filename extension) get_filename_component(basename ${filename} NAME_WE) get_filename_component(dirname ${filename} DIRECTORY) @@ -39,8 +41,6 @@ endforeach() include_directories("include") -include(GNUInstallDirs) - add_library(extentsampling SHARED ${C_SOURCES}) target_link_libraries(extentsampling -lgsl -lgslcblas) set_target_properties(extentsampling PROPERTIES -- cgit v1.2.3