From 637cf3aa6b641956316f2b5c38993e0217412392 Mon Sep 17 00:00:00 2001 From: Max Wittal Date: Fri, 22 Oct 2021 13:32:40 +0200 Subject: [PATCH] CMAKE_MODULE_PATH fix --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a45a56e..84708ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,11 +8,7 @@ PROJECT(sqltoast) # it in a cache variable for use by the other cmakes. STRING(TOLOWER "${CMAKE_BUILD_TYPE}" BUILD_TYPE_LOWER) -SET( - CMAKE_MODULE_PATH - ${CMAKE_MODULE_PATH} - "${CMAKE_SOURCE_DIR}/cmake_modules" -) +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules") # Must use GNUInstallDirs to install libraries into correct # locations on all platforms.