From: Jianpeng Ma Date: Thu, 2 Aug 2018 08:37:39 +0000 (+0800) Subject: cmake: fix a cmake error when with -DALLOCATOR=jemalloc. X-Git-Tag: v14.0.1~704^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23380%2Fhead;p=ceph.git cmake: fix a cmake error when with -DALLOCATOR=jemalloc. When exec: ./do_cmake.sh -DALLOCATOR=jemalloc. Met the following messages: >> CMake Error at cmake/modules/FindJeMalloc.cmake:28 (endforeach): endforeach An ENDFOREACH command was found outside of a proper FOREACH ENDFOREACH structure. Or its arguments did not match the opening FOREACH command. >> Call Stack (most recent call first): CMakeLists.txt:326 (find_package) This bug introduce commit 8db629a14baf2aea99cf. Signed-off-by: Jianpeng Ma --- diff --git a/cmake/modules/FindJeMalloc.cmake b/cmake/modules/FindJeMalloc.cmake index 8acab181f09..2b6234cc5ee 100644 --- a/cmake/modules/FindJeMalloc.cmake +++ b/cmake/modules/FindJeMalloc.cmake @@ -25,5 +25,4 @@ if(JeMalloc_FOUND AND NOT (TARGET JeMalloc::JeMalloc)) INTERFACE_INCLUDE_DIRECTORIES "${JEMALLOC_INCLUDE_DIR}" IMPORTED_LINK_INTERFACE_LANGUAGES "C" IMPORTED_LOCATION "${JEMALLOC_LIBRARIES}") - endforeach() endif()