[mlpack-git] master: Issue an error if config.hpp is not found. (cec4ac4)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Dec 9 11:41:22 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/fc50782ab165567b0f04b11534b4ddc499262330...cec4ac427536cbd9738a33e0c6facabeeadd31b0

>---------------------------------------------------------------

commit cec4ac427536cbd9738a33e0c6facabeeadd31b0
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Dec 9 11:41:10 2015 -0500

    Issue an error if config.hpp is not found.


>---------------------------------------------------------------

cec4ac427536cbd9738a33e0c6facabeeadd31b0
 CMake/FindArmadillo.cmake | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMake/FindArmadillo.cmake b/CMake/FindArmadillo.cmake
index ca5262f..35e3921 100644
--- a/CMake/FindArmadillo.cmake
+++ b/CMake/FindArmadillo.cmake
@@ -323,7 +323,9 @@ if(EXISTS "${ARMADILLO_INCLUDE_DIR}/armadillo_bits/config.hpp")
     endif()
 
   endif("${ARMA_USE_WRAPPER}" STREQUAL "")
-
+else(EXISTS "${ARMADILLO_INCLUDE_DIR}/armadillo_bits/config.hpp")
+  message(FATAL_ERROR "${ARMADILLO_INCLUDE_DIR}/armadillo_bits/config.hpp not "
+      "found!  Cannot determine what to link against.")
 endif(EXISTS "${ARMADILLO_INCLUDE_DIR}/armadillo_bits/config.hpp")
 
 if (ARMA_NEED_LIBRARY)



More information about the mlpack-git mailing list