Unverified Commit 6c10c4ca authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

move APPLE_OUTPUT_DYLIB option closer to the rest options (#3547)

* move APPLE_OUTPUT_DYLIB option closer to the rest options

* Update CMakeLists.txt
parent 6e210c99
...@@ -10,6 +10,10 @@ OPTION(BUILD_STATIC_LIB "Build static library" OFF) ...@@ -10,6 +10,10 @@ OPTION(BUILD_STATIC_LIB "Build static library" OFF)
OPTION(__BUILD_FOR_R "Set to ON if building lib_lightgbm for use with the R package" OFF) OPTION(__BUILD_FOR_R "Set to ON if building lib_lightgbm for use with the R package" OFF)
OPTION(__INTEGRATE_OPENCL "Set to ON if building LightGBM with the OpenCL ICD Loader and its dependencies included" OFF) OPTION(__INTEGRATE_OPENCL "Set to ON if building LightGBM with the OpenCL ICD Loader and its dependencies included" OFF)
if(APPLE)
OPTION(APPLE_OUTPUT_DYLIB "Output dylib shared library" OFF)
endif(APPLE)
if(__INTEGRATE_OPENCL) if(__INTEGRATE_OPENCL)
cmake_minimum_required(VERSION 3.11) cmake_minimum_required(VERSION 3.11)
elseif(USE_GPU OR APPLE) elseif(USE_GPU OR APPLE)
...@@ -23,6 +27,7 @@ else() ...@@ -23,6 +27,7 @@ else()
endif() endif()
if(__BUILD_FOR_R) if(__BUILD_FOR_R)
# Should be always before PROJECT command
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY") set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
endif(__BUILD_FOR_R) endif(__BUILD_FOR_R)
...@@ -32,10 +37,6 @@ else() ...@@ -32,10 +37,6 @@ else()
PROJECT(lightgbm LANGUAGES C CXX) PROJECT(lightgbm LANGUAGES C CXX)
endif() endif()
if(APPLE)
OPTION(APPLE_OUTPUT_DYLIB "Output dylib shared library" OFF)
endif(APPLE)
if(__INTEGRATE_OPENCL) if(__INTEGRATE_OPENCL)
set(__INTEGRATE_OPENCL ON CACHE BOOL "" FORCE) set(__INTEGRATE_OPENCL ON CACHE BOOL "" FORCE)
set(USE_GPU OFF CACHE BOOL "" FORCE) set(USE_GPU OFF CACHE BOOL "" FORCE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment