fix CMAKE_MODULE_PATH for libnfc as a submodule

This fixes #496
This commit is contained in:
Markus Werle 2018-10-02 12:14:29 +02:00 committed by GitHub
parent a9af1927e6
commit d11db46ddd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ ADD_DEFINITIONS("-DHAVE_CONFIG_H")
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/include) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/include)
# make it easy to locate CMake modules for finding libraries # 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 # Options
option (LIBNFC_LOG "Enable log facility (errors, warning, info and debug messages)" ON) option (LIBNFC_LOG "Enable log facility (errors, warning, info and debug messages)" ON)