Skip to content

Commit

Permalink
Merge pull request #337 from analogdevicesinc/fix_install_csharp
Browse files Browse the repository at this point in the history
bindings/csharp: Fix the install step for CSharp bindings
  • Loading branch information
rgetz authored Jan 14, 2020
2 parents 0f2445b + 8b57196 commit 48ffd18
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bindings/csharp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ if (MCS_EXECUTABLE)
add_custom_target(libiio-sharp ALL DEPENDS ${LIBIIO_CS_DLL})

if(NOT SKIP_INSTALL_ALL)
install(FILES ${LIBIIO_CS_DLL} ${LIBIIO_CS_DLL}.mdb DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/cli/libiio-sharp-${VERSION})
set(DEBUG_SYMBOLS_FILE "")
if(EXISTS "${LIBIIO_CS_DLL}.mdb")
set(DEBUG_SYMBOLS_FILE "${LIBIIO_CS_DLL}.mdb")
elseif(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/libiio-sharp.pdb")
set(DEBUG_SYMBOLS_FILE "${CMAKE_CURRENT_BINARY_DIR}/libiio-sharp.pdb")
endif()
install(FILES ${LIBIIO_CS_DLL} ${DEBUG_SYMBOLS_FILE} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/cli/libiio-sharp-${VERSION})
endif()
endif()
endif()

0 comments on commit 48ffd18

Please sign in to comment.