Skip to content

Commit b7bbd41

Browse files
committed
cmake: fix CMAKE_MODULE_PATH assignment using list(APPEND ...)
Using a list allow the user to specify additional search paths for Find Modules. Allegedly this might be useful when dealing with uncommon build environments, e.g. when cross compiling
1 parent 52a5ff9 commit b7bbd41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include(CheckSymbolExists)
1919
include(CTest)
2020
include(GNUInstallDirs)
2121

22-
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
22+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
2323

2424
set(DEFAULT_PAM_DIR ${CMAKE_INSTALL_FULL_LIBDIR})
2525
if (CMAKE_SYSTEM_NAME STREQUAL Linux)

0 commit comments

Comments
 (0)