[mlpack-git] master: Update CMakeLists.txt (7ae1355)

gitdub at mlpack.org gitdub at mlpack.org
Tue Mar 8 04:08:54 EST 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/fd84f3a2e53592d723a8e8a76dadb8aa76820913...1a9c41a86be1fa1dcc5c3b90dd959c2255c3bb8e

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

commit 7ae135594d3dec3e6d0762051d7020b0fabfde99
Author: Grzegorz Krajewski <krajekg at gmail.com>
Date:   Tue Mar 8 10:08:54 2016 +0100

    Update CMakeLists.txt


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

7ae135594d3dec3e6d0762051d7020b0fabfde99
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fa673d4..6afd2c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,7 +68,7 @@ if(DEBUG)
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -O0")
   # mlpack uses it's own mlpack::backtrace class based on Binary File Descriptor
   # <bfd.h> and linux Dynamic Loader <libdl.h> and more portable version in future
-  if(SYSTEM_NAME STREQUAL "Linux")
+  if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
     find_package(Bfd)
     find_package(LibDL)
     if(LIBBFD_FOUND AND LIBDL_FOUND)
@@ -79,7 +79,7 @@ if(DEBUG)
     else(LIBBFD_FOUND AND LIBDL_FOUND)
       message(WARNING "No libBFD and/or libDL has been found!")
     endif(LIBBFD_FOUND AND LIBDL_FOUND)
-  endif(SYSTEM_NAME STREQUAL "Linux")
+  endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
 else()
   add_definitions(-DARMA_NO_DEBUG)
   add_definitions(-DNDEBUG)




More information about the mlpack-git mailing list