Skip to content

Commit

Permalink
bindings/csharp/CMakeLists.txt: Fix install step for CSharp bindings.
Browse files Browse the repository at this point in the history
Debug symbols files (whether .pdb or .mdb) are created at build time
not cmake generation time. So for a clean build, if those files are not
found at cmake generation time, the install step for CSharp will not be
properly done.

Signed-off-by: Alexandra Trifan <[email protected]>
  • Loading branch information
AlexandraTrifan committed Apr 8, 2020
1 parent 135c189 commit 0c6f646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/csharp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ if (MCS_EXECUTABLE)

if(NOT SKIP_INSTALL_ALL)
set(DEBUG_SYMBOLS_FILE "")
if(EXISTS "${LIBIIO_CS_DLL}.mdb")
if(MCS_EXECUTABLE_NAME STREQUAL "mcs")
set(DEBUG_SYMBOLS_FILE "${LIBIIO_CS_DLL}.mdb")
elseif(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/libiio-sharp.pdb")
elseif(MCS_EXECUTABLE_NAME STREQUAL "csc")
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})
Expand Down

0 comments on commit 0c6f646

Please sign in to comment.