From ab1497addc207275c9fbac9a9061767031b5c6c9 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Thu, 2 Aug 2018 16:37:39 +0800 Subject: [PATCH] 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 --- cmake/modules/FindJeMalloc.cmake | 1 - 1 file changed, 1 deletion(-) 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() -- 2.39.5