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
f1b08ac8
Commit
f1b08ac8
authored
May 07, 2017
by
Guolin Ke
Browse files
fix #499
parent
5bc6596e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
CMakeLists.txt
CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
f1b08ac8
...
@@ -41,11 +41,13 @@ if(USE_GPU)
...
@@ -41,11 +41,13 @@ if(USE_GPU)
find_package
(
OpenCL REQUIRED
)
find_package
(
OpenCL REQUIRED
)
include_directories
(
${
OpenCL_INCLUDE_DIRS
}
)
include_directories
(
${
OpenCL_INCLUDE_DIRS
}
)
MESSAGE
(
STATUS
"OpenCL include directory:"
${
OpenCL_INCLUDE_DIRS
}
)
MESSAGE
(
STATUS
"OpenCL include directory:"
${
OpenCL_INCLUDE_DIRS
}
)
if
(
WIN32
)
set
(
Boost_USE_STATIC_LIBS ON
)
endif
()
find_package
(
Boost 1.56.0 COMPONENTS filesystem system REQUIRED
)
find_package
(
Boost 1.56.0 COMPONENTS filesystem system REQUIRED
)
if
(
WIN32
)
if
(
WIN32
)
# disable autolinking in boost
# disable autolinking in boost
add_definitions
(
-DBOOST_ALL_NO_LIB
)
add_definitions
(
-DBOOST_ALL_NO_LIB
)
set
(
Boost_USE_STATIC_LIBS ON
)
endif
()
endif
()
include_directories
(
${
Boost_INCLUDE_DIRS
}
)
include_directories
(
${
Boost_INCLUDE_DIRS
}
)
ADD_DEFINITIONS
(
-DUSE_GPU
)
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