Skip to content

Commit

Permalink
Provide some hints when GPL is unavailable (#4037)
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Dec 20, 2017
1 parent 76f3ad6 commit e2c0be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogun/CMakeLists.txt
Expand Up @@ -46,13 +46,13 @@ IF (LICENSE_GPL_SHOGUN)

SET(USE_GPL_SHOGUN 1)
ELSE()
MESSAGE(FATAL_ERROR "Shogun can only be built with GPL codes if the source files are in ${SHOGUN_GPL_INCLUDE_DIR}. Please download or disable.\n")
MESSAGE(FATAL_ERROR "Shogun can only be built with GPL codes if the source files are in ${SHOGUN_GPL_INCLUDE_DIR}. Please download or disable with LICENSE_GPL_SHOGUN=OFF.\n")
ENDIF()
ENDIF()

OPTION(USE_SVMLIGHT "SVMLight" ON)
IF(USE_SVMLIGHT AND NOT USE_GPL_SHOGUN)
MESSAGE(FATAL_ERROR "Can only use SVMLight when GPL codes are included")
MESSAGE(FATAL_ERROR "Can only use SVMLight when GPL codes are included. Disable by USE_SVMLIGHT=OFF")
ENDIF()

# add target to compile the libshogun sources
Expand Down

0 comments on commit e2c0be6

Please sign in to comment.