mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
cmake: manipulate CMAKE_MODULE_PATH as a list
Also prefer local modules.
This commit is contained in:
parent
2e9183e4de
commit
28f1e9842c
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue