chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9dc4c6
)
Install PDB file with debug information when using Visual Studio
author
Markus Rickert
<rickert@fortiss.org>
Mon, 11 Sep 2017 21:13:15 +0000
(23:13 +0200)
committer
Markus Rickert
<rickert@fortiss.org>
Tue, 12 Sep 2017 11:40:05 +0000
(13:40 +0200)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 48644780edc2ab27db9f0b4c1ceece11054442bf..a1dbbd9695a05ee795bf17bb37322d4acd9d235e 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-259,6
+259,10
@@
install ( TARGETS ${nlopt_lib}
ARCHIVE DESTINATION ${RELATIVE_INSTALL_LIB_DIR}
\r
)
\r
\r
+if (MSVC AND BUILD_SHARED_LIBS AND NOT CMAKE_VERSION VERSION_LESS 3.1)
\r
+ install (FILES $<TARGET_PDB_FILE:${nlopt_lib}> DESTINATION ${RELATIVE_INSTALL_BIN_DIR} CONFIGURATIONS Debug RelWithDebInfo COMPONENT Debug)
\r
+endif ()
\r
+
\r
add_subdirectory (api)
\r
\r
if (BUILD_PYTHON)
\r