Skip to content

Commit

Permalink
Merge pull request #3603 from geektoni/patch-1
Browse files Browse the repository at this point in the history
Remove Mahalanobis example if HAVE_LAPACK is not available
  • Loading branch information
vigsterkr committed Jan 23, 2017
2 parents 2d92988 + 20dda19 commit 072d3cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmake/FindMetaExamples.cmake
@@ -1,22 +1,23 @@
function(find_meta_examples)
FILE(GLOB_RECURSE META_EXAMPLE_LISTINGS ${CMAKE_SOURCE_DIR}/examples/meta/src/*.sg)

# temporary hacks to exclude certain meta examples that have dependencies
IF(NOT HAVE_NLOPT)
LIST(REMOVE_ITEM META_EXAMPLE_LISTINGS ${CMAKE_SOURCE_DIR}/examples/meta/src/gaussian_processes/gaussian_process_regression.sg)
ENDIF()

IF(NOT USE_GPL_SHOGUN)
LIST(REMOVE_ITEM META_EXAMPLE_LISTINGS
${CMAKE_SOURCE_DIR}/examples/meta/src/gaussian_processes/gaussian_process_regression.sg
${CMAKE_SOURCE_DIR}/examples/meta/src/multiclass_classifier/multiclass_logisticregression.sg
)
ENDIF()

IF(NOT HAVE_LAPACK)
LIST(REMOVE_ITEM META_EXAMPLE_LISTINGS
${CMAKE_SOURCE_DIR}/examples/meta/src/regression/linear_ridge_regression.sg
${CMAKE_SOURCE_DIR}/examples/meta/src/clustering/gmm.sg
${CMAKE_SOURCE_DIR}/examples/meta/src/distance/mahalanobis.sg
)
ENDIF()

Expand Down

0 comments on commit 072d3cb

Please sign in to comment.