From d5a30c7df2feadc2d545fcbcfb00d7f6c9d094fa Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Tue, 22 Nov 2016 11:21:02 +0100 Subject: [PATCH] Tpl: Add content of libs folder to CMAKE_PREFIX_PATH ref #2 --- cmake/prefix_path.cmake | 2 -- scripts/setup/cmake.tpl | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 cmake/prefix_path.cmake diff --git a/cmake/prefix_path.cmake b/cmake/prefix_path.cmake deleted file mode 100644 index e29627e..0000000 --- a/cmake/prefix_path.cmake +++ /dev/null @@ -1,2 +0,0 @@ -file(GLOB prefix_paths libs/*) -list(APPEND CMAKE_PREFIX_PATH ${prefix_paths}) diff --git a/scripts/setup/cmake.tpl b/scripts/setup/cmake.tpl index 1bdd578..9ad11e2 100644 --- a/scripts/setup/cmake.tpl +++ b/scripts/setup/cmake.tpl @@ -1,9 +1,12 @@ cmake_minimum_required(VERSION 3.6) project(%PROJECT% VERSION 0.0.0 LANGUAGES C CXX) -# -- Include Paths +# -- Module Path list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) +# -- Prefix Path +file(GLOB prefix_paths ${CMAKE_CURRENT_SOURCE_DIR}/libs/*) + # -- Extends #add_subdirectory(insieme)