From e4ae79e17d2a94894ccb53a6e97968db6a27807e Mon Sep 17 00:00:00 2001 From: Travis Gockel Date: Mon, 21 Sep 2020 17:55:27 -0600 Subject: [PATCH] build: Use CMAKE_CURRENT_SOURCE_DIR to add CMake modules Fixes #115 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e41ddd..2c9b912 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ cmake_policy(VERSION 3.5) cmake_policy(SET CMP0037 OLD) # allow generation of "test" target set(CMAKE_REQUIRED_QUIET YES) # tell check_include_file_cxx to keep quiet -list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules/") +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/") include(BuildFunctions) include(CheckIncludeFileCXX)