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
6a792d16
Commit
6a792d16
authored
Dec 07, 2016
by
Guolin Ke
Browse files
fix library name in cmake with VS
parent
f1ccc4a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
CMakeLists.txt
CMakeLists.txt
+4
-1
No files found.
CMakeLists.txt
View file @
6a792d16
...
@@ -73,9 +73,12 @@ file(GLOB SOURCES
...
@@ -73,9 +73,12 @@ file(GLOB SOURCES
)
)
add_executable
(
lightgbm src/main.cpp
${
SOURCES
}
)
add_executable
(
lightgbm src/main.cpp
${
SOURCES
}
)
add_library
(
_lightgbm SHARED src/c_api.cpp
${
SOURCES
}
)
add_library
(
_lightgbm SHARED src/c_api.cpp
${
SOURCES
}
)
if
(
MSVC
)
set_target_properties
(
_lightgbm PROPERTIES OUTPUT_NAME
"lightgbm"
)
endif
(
MSVC
)
if
(
USE_MPI
)
if
(
USE_MPI
)
TARGET_LINK_LIBRARIES
(
lightgbm
${
MPI_CXX_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
lightgbm
${
MPI_CXX_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
_lightgbm
${
MPI_CXX_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
_lightgbm
${
MPI_CXX_LIBRARIES
}
)
...
...
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