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
wangsen
paddle_dbnet
Commits
35aac63b
Unverified
Commit
35aac63b
authored
Jan 08, 2021
by
Tingquan Gao
Committed by
GitHub
Jan 08, 2021
Browse files
Adapt to the paddle_inference on Win32 and Linux (#1690)
parent
83d59c5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
deploy/cpp_infer/CMakeLists.txt
deploy/cpp_infer/CMakeLists.txt
+15
-5
No files found.
deploy/cpp_infer/CMakeLists.txt
View file @
35aac63b
...
@@ -138,12 +138,22 @@ endif()
...
@@ -138,12 +138,22 @@ endif()
# Note: libpaddle_inference_api.so/a must put before libpaddle_fluid.so/a
# Note: libpaddle_inference_api.so/a must put before libpaddle_fluid.so/a
if
(
WITH_STATIC_LIB
)
if
(
WITH_STATIC_LIB
)
set
(
DEPS
if
(
WIN32
)
${
PADDLE_LIB
}
/paddle/lib/libpaddle_fluid
${
CMAKE_STATIC_LIBRARY_SUFFIX
}
)
set
(
DEPS
${
PADDLE_LIB
}
/paddle/lib/paddle_fluid
${
CMAKE_STATIC_LIBRARY_SUFFIX
}
)
else
()
set
(
DEPS
${
PADDLE_LIB
}
/paddle/lib/libpaddle_fluid
${
CMAKE_STATIC_LIBRARY_SUFFIX
}
)
endif
()
else
()
else
()
set
(
DEPS
if
(
WIN32
)
${
PADDLE_LIB
}
/paddle/lib/libpaddle_fluid
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
set
(
DEPS
endif
()
${
PADDLE_LIB
}
/paddle/lib/paddle_fluid
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
else
()
set
(
DEPS
${
PADDLE_LIB
}
/paddle/lib/libpaddle_fluid
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
endif
()
endif
(
WITH_STATIC_LIB
)
if
(
NOT WIN32
)
if
(
NOT WIN32
)
set
(
DEPS
${
DEPS
}
set
(
DEPS
${
DEPS
}
...
...
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