Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
f23e6083
"vscode:/vscode.git/clone" did not exist on "7509ec8ade06b13bd10aff41ece78c02a7993535"
Commit
f23e6083
authored
Mar 18, 2017
by
Qiwei Ye
Browse files
change compile to gcc on Apple as default
parent
0ddb3efd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
.vscode/.cmaketools.json
.vscode/.cmaketools.json
+10
-0
CMakeLists.txt
CMakeLists.txt
+6
-0
No files found.
.vscode/.cmaketools.json
0 → 100644
View file @
f23e6083
{
"variant"
:
{
"label"
:
"Release"
,
"keywordSettings"
:
{
"buildType"
:
"release"
},
"description"
:
"Enable optimizations, omit debug info"
},
"activeEnvironments"
:
[]
}
\ No newline at end of file
CMakeLists.txt
View file @
f23e6083
cmake_minimum_required
(
VERSION 2.8
)
if
(
APPLE
)
SET
(
CMAKE_CXX_COMPILER
"g++-6"
)
SET
(
CMAKE_C_COMPILER
"gcc-6"
)
endif
()
PROJECT
(
lightgbm
)
OPTION
(
USE_MPI
"MPI based parallel learning"
OFF
)
...
...
@@ -13,6 +18,7 @@ else()
ADD_DEFINITIONS
(
-DUSE_SOCKET
)
endif
(
USE_MPI
)
find_package
(
OpenMP REQUIRED
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
OpenMP_CXX_FLAGS
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment