Skip to content

Commit

Permalink
cmake: fix a cmake error when with -DALLOCATOR=jemalloc.
Browse files Browse the repository at this point in the history
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 8db629a.

Signed-off-by: Jianpeng Ma <[email protected]>
  • Loading branch information
majianpeng committed Aug 2, 2018
1 parent 8d36655 commit ab1497a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmake/modules/FindJeMalloc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit ab1497a

Please sign in to comment.