Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmake_extensions/FindMlpack.cmake
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# This module finds an installed armadilo package.
# This module finds an installed Mlpack package.
#
# It sets the following variables:
# Mlpack_FOUND - Set to false, or undefined, if lemon isn't found.
# Mlpack_INCLUDE_DIR - Lemon include directory.
# Mlpack_LIBRARIES - Lemon library files
# Mlpack_INCLUDE_DIR - Mlpack include directory.
# Mlpack_LIBRARIES - Mlpack library files
FIND_PATH(Mlpack_INCLUDE_DIR mlpack/core.hpp PATHS /usr/include /usr/local/include ${CMAKE_INCLUDE_PATH} ${CMAKE_PREFIX_PATH}/include $ENV{Mlpack_ROOT}/include ENV CPLUS_INCLUDE_PATH)
FIND_LIBRARY(Mlpack_LIBRARIES
NAMES mlpack
PATHS $ENV{Mlpack_ROOT}/src/impex $ENV{Mlpack_ROOT}/lib ENV LD_LIBRARY_PATH ENV LIBRARY_PATH
)

GET_FILENAME_COMPONENT(Mlpack_LIBRARY_PATH ${Mlpack_LIBRARIES} PATH)
SET( Mlpack_LIBRARY_DIR ${Mlpack_LIBRARY_PATH} CACHE PATH "Path to lemon library.")
SET( Mlpack_LIBRARY_DIR ${Mlpack_LIBRARY_PATH} CACHE PATH "Path to Mlpack library.")

# handle the QUIETLY and REQUIRED arguments and set Mlpack_FOUND to TRUE if
# all listed variables are TRUE
Expand Down