]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: fix a cmake error when with -DALLOCATOR=jemalloc. 23380/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Thu, 2 Aug 2018 08:37:39 +0000 (16:37 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Thu, 2 Aug 2018 08:38:53 +0000 (16:38 +0800)
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 <jianpeng.ma@intel.com>
cmake/modules/FindJeMalloc.cmake

index 8acab181f092c1fcacc204111a7efe455d8abf35..2b6234cc5ee7d3b77dc58fc066605dfcc72be2a7 100644 (file)
@@ -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()