Commit f23e6083 authored by Qiwei Ye's avatar Qiwei Ye
Browse files

change compile to gcc on Apple as default

parent 0ddb3efd
{
"variant": {
"label": "Release",
"keywordSettings": {
"buildType": "release"
},
"description": "Enable optimizations, omit debug info"
},
"activeEnvironments": []
}
\ No newline at end of file
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
if(APPLE)
SET(CMAKE_CXX_COMPILER "g++-6")
SET(CMAKE_C_COMPILER "gcc-6")
endif()
PROJECT(lightgbm) PROJECT(lightgbm)
OPTION(USE_MPI "MPI based parallel learning" OFF) OPTION(USE_MPI "MPI based parallel learning" OFF)
...@@ -13,6 +18,7 @@ else() ...@@ -13,6 +18,7 @@ else()
ADD_DEFINITIONS(-DUSE_SOCKET) ADD_DEFINITIONS(-DUSE_SOCKET)
endif(USE_MPI) endif(USE_MPI)
find_package(OpenMP REQUIRED) find_package(OpenMP REQUIRED)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
......
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