From d11db46ddd168bc0182f7fba843d9c1c5d526c4d Mon Sep 17 00:00:00 2001 From: Markus Werle Date: Tue, 2 Oct 2018 12:14:29 +0200 Subject: [PATCH] fix CMAKE_MODULE_PATH for libnfc as a submodule This fixes #496 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76babf2..2ad92d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ ADD_DEFINITIONS("-DHAVE_CONFIG_H") INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/include) # make it easy to locate CMake modules for finding libraries -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules/") +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/modules/") # Options option (LIBNFC_LOG "Enable log facility (errors, warning, info and debug messages)" ON)