aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2015-11-12 21:36:48 -0500
committerBen Boeckel <mathstuf@gmail.com>2015-11-12 21:56:14 -0500
commit28f1e9842c65adbb30ca22004c780fe6c263c116 (patch)
tree5c8ca9d13ff6498915041b96df6b15fb52458434 /CMakeLists.txt
parent2e9183e4de8fb5b5bcb2c6e2416a6b0b4a48682d (diff)
cmake: manipulate CMAKE_MODULE_PATH as a list
Also prefer local modules.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c5f86189..000010a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,7 +7,8 @@ set(CMAKE_C_STANDARD 99)
SET(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
add_definitions("-Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE")
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMake)
+list(INSERT CMAKE_MODULE_PATH 0
+ "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
add_subdirectory(swaybg swaybg)