cmake: CMAKE_MODULE_PATH is a list and empty by default

we should not reference it using ${CMAKE_MODULE_PATH} before assigning
to it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-07-20 15:10:45 +08:00
parent 25c76b19a6
commit ec84d7169b

View File

@ -17,7 +17,7 @@ if (POLICY CMP0023)
cmake_policy(SET CMP0023 OLD)
endif (POLICY CMP0023)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules/")
option(WITH_CCACHE "Build with ccache.")
if(WITH_CCACHE)