CMakeLists: Change set into a list append
Same thing, less repetition. Also puts quotes around the added path to correctly handle any spaces in paths.
This commit is contained in:
parent
e8b6e76fbf
commit
c92a6a5eb7
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@ if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
|
||||||
message(SEND_ERROR "In-source builds are not allowed.")
|
message(SEND_ERROR "In-source builds are not allowed.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Signify where the module directories are
|
# Add the module directory to the list of paths
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
|
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules")
|
||||||
|
|
||||||
# Compiler flags
|
# Compiler flags
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
|
|
Loading…
Reference in a new issue