Skip to content

Commit b54d1b6

Browse files
committed
install PDB files on MSVC based builds
1 parent 37d0e71 commit b54d1b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ install(TARGETS OIS
226226
FRAMEWORK DESTINATION Library/Frameworks
227227
)
228228

229+
if(MSVC)
230+
install(FILES $<TARGET_PDB_FILE:OIS> DESTINATION bin OPTIONAL)
231+
endif(MSVC)
232+
229233
if(UNIX)
230234
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/OIS.pc.in ${CMAKE_BINARY_DIR}/OIS.pc @ONLY)
231235
install(FILES ${CMAKE_BINARY_DIR}/OIS.pc DESTINATION ${OIS_LIB_DIRECTORY}/pkgconfig)

0 commit comments

Comments
 (0)