]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: CMAKE_MODULE_PATH is a list and empty by default
authorKefu Chai <kchai@redhat.com>
Wed, 20 Jul 2016 07:10:45 +0000 (15:10 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Jul 2016 07:10:48 +0000 (15:10 +0800)
we should not reference it using ${CMAKE_MODULE_PATH} before assigning
to it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt

index f149069efc18fb6b25ea5bb1934f15ba566b702c..ffae835967ddf9e5c8abebc52097fc51959cff11 100644 (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)