[mlpack-git] master: Don't forget to add the mlpack directories. (df5e8f5)
gitdub at mlpack.org
gitdub at mlpack.org
Tue Sep 13 11:46:05 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/12a10f428c07dd409d52684932655842a8eddb29...8d6d3919faf8596778b6db8c8865262fec9c394b
>---------------------------------------------------------------
commit df5e8f538ea0800132e3199f7d49436e24b50ce7
Author: Ryan Curtin <ryan at ratml.org>
Date: Tue Sep 13 11:46:05 2016 -0400
Don't forget to add the mlpack directories.
>---------------------------------------------------------------
df5e8f538ea0800132e3199f7d49436e24b50ce7
CMakeLists.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1df3c97..8383f81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -506,6 +506,9 @@ if (PKG_CONFIG_FOUND)
set(MLPACK_INCLUDE_DIRS_STRING "${MLPACK_INCLUDE_DIRS_STRING} -I${incldir}")
endforeach ()
+ # Add the install directory too.
+ set(MLPACK_INCLUDE_DIRS_STRING
+ "${MLPACK_INCLUDE_DIRS_STRING} -I${CMAKE_INSTALL_PREFIX}/include/")
# Create the list of link directories.
foreach (linkdir ${MLPACK_LIBRARY_DIRS})
@@ -520,6 +523,9 @@ if (PKG_CONFIG_FOUND)
set(MLPACK_LIBRARIES_STRING "${MLPACK_LIBRARIES_STRING} -l${lib}")
endif ()
endforeach ()
+ # Don't forget to add mlpack as a dependency too.
+ set(MLPACK_LIBRARIES_STRING
+ "${MLPACK_LIBRARIES_STRING} -L${CMAKE_INSTALL_PREFIX}/lib/ -lmlpack")
# Do first stage of configuration.
set(MLPACK_VERSION_STRING "@MLPACK_VERSION_STRING@")
More information about the mlpack-git
mailing list