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:
Lioncash 2017-02-22 20:34:51 -05:00 committed by Merry
parent e8b6e76fbf
commit c92a6a5eb7

View file

@ -29,8 +29,8 @@ if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message(SEND_ERROR "In-source builds are not allowed.")
endif()
# Signify where the module directories are
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
# Add the module directory to the list of paths
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules")
# Compiler flags
if (MSVC)