Update CMakeLists.txt
This commit is contained in:
+2
-3
@@ -12,6 +12,7 @@ option(MATLAB_BINDINGS "Compile MATLAB bindings if MATLAB is found." OFF)
|
||||
option(TEST_VERBOSE "Run test cases with verbose output." OFF)
|
||||
option(BUILD_TESTS "Build tests." ON)
|
||||
option(BUILD_CLI_EXECUTABLES "Build command-line executables." ON)
|
||||
option(BUILD_PYTHON_BINDINGS "Build Python bindings." ON)
|
||||
option(BUILD_SHARED_LIBS
|
||||
"Compile shared libraries (if OFF, static libraries are compiled)." ON)
|
||||
option(BUILD_WITH_COVERAGE
|
||||
@@ -23,13 +24,11 @@ option(FORCE_CXX11
|
||||
OFF)
|
||||
enable_testing()
|
||||
|
||||
# Python can not be binged with mlpack-master on windows yet
|
||||
# Currently Python bindings aren't supported on windows
|
||||
# Set BUILD_PYTHON_BINDINGS to OFF when the platform are windows
|
||||
if(WIN32)
|
||||
option(BUILD_PYTHON_BINDINGS "Build Python bindings." OFF)
|
||||
message(WARNING "By default Python bindings are not compiled for Windows because they are not known to work. Set BUILD_PYTHON_BINDINGS to ON if you want them built.")
|
||||
else()
|
||||
option(BUILD_PYTHON_BINDINGS "Build Python bindings." ON)
|
||||
endif()
|
||||
|
||||
# Ensure that we have a C++11 compiler. In newer versions of CMake, this is
|
||||
|
||||
Reference in New Issue
Block a user