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
9e2ad71a
Commit
9e2ad71a
authored
Apr 26, 2017
by
Guolin Ke
Committed by
GitHub
Apr 26, 2017
Browse files
only use static link for Boost in Windows.
parent
2e6a97fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
CMakeLists.txt
CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
9e2ad71a
...
...
@@ -41,11 +41,11 @@ if(USE_GPU)
find_package
(
OpenCL REQUIRED
)
include_directories
(
${
OpenCL_INCLUDE_DIRS
}
)
MESSAGE
(
STATUS
"OpenCL include directory:"
${
OpenCL_INCLUDE_DIRS
}
)
set
(
Boost_USE_STATIC_LIBS ON
)
find_package
(
Boost 1.56.0 COMPONENTS filesystem system REQUIRED
)
if
(
WIN32
)
# disable autolinking in boost
add_definitions
(
-DBOOST_ALL_NO_LIB
)
set
(
Boost_USE_STATIC_LIBS ON
)
endif
()
include_directories
(
${
Boost_INCLUDE_DIRS
}
)
ADD_DEFINITIONS
(
-DUSE_GPU
)
...
...
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