Skip to content

Commit

Permalink
add OpenMP option in CMakeLists.txt (#4339)
Browse files Browse the repository at this point in the history
  • Loading branch information
sperlingxx authored and hcho3 committed Apr 11, 2019
1 parent a448a83 commit 3078b59
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ cmake_minimum_required (VERSION 3.2)
project(xgboost)
include(cmake/Utils.cmake)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules")
find_package(OpenMP)

# Options
## OPENMP
option(USE_OPENMP "Build with OpenMP acceleration" ON)
if (USE_OPENMP)
find_package(OpenMP)
endif()

set_default_configuration_release()
msvc_use_static_runtime()
Expand Down

0 comments on commit 3078b59

Please sign in to comment.