From: Kefu Chai Date: Wed, 20 Jul 2016 07:10:45 +0000 (+0800) Subject: cmake: CMAKE_MODULE_PATH is a list and empty by default X-Git-Tag: ses5-milestone5~345^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ec84d7169bacf0fd737fc41affe0134580552f89;p=ceph.git 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f149069efc18..ffae835967dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)