[mlpack-git] master: Old CMake doesn't support continue. (f13e7f3)
gitdub at mlpack.org
gitdub at mlpack.org
Fri Sep 16 17:08:16 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/8d6d3919faf8596778b6db8c8865262fec9c394b...f13e7f33c8d3842cad7f5698eb9cce41c3138c3d
>---------------------------------------------------------------
commit f13e7f33c8d3842cad7f5698eb9cce41c3138c3d
Author: Ryan Curtin <ryan at ratml.org>
Date: Fri Sep 16 17:08:16 2016 -0400
Old CMake doesn't support continue.
>---------------------------------------------------------------
f13e7f33c8d3842cad7f5698eb9cce41c3138c3d
CMakeLists.txt | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c30404b..0c80c4a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -500,11 +500,10 @@ if (PKG_CONFIG_FOUND)
# Next, adapt the list of include directories.
foreach (incldir ${MLPACK_INCLUDE_DIRS})
# Filter out some obviously unnecessary directories.
- if ("${incldir}" STREQUAL "/usr/include")
- continue()
+ if (NOT "${incldir}" STREQUAL "/usr/include")
+ set(MLPACK_INCLUDE_DIRS_STRING "${MLPACK_INCLUDE_DIRS_STRING}
+ -I${incldir}")
endif ()
-
- set(MLPACK_INCLUDE_DIRS_STRING "${MLPACK_INCLUDE_DIRS_STRING} -I${incldir}")
endforeach ()
# Add the install directory too.
set(MLPACK_INCLUDE_DIRS_STRING
More information about the mlpack-git
mailing list