Skip to content

Commit

Permalink
CMake: Name the lib 'libiio.dll' instead of 'iio.dll' under Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
Paul Cercueil committed May 12, 2015
1 parent e558265 commit d84e05c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ add_library(iio ${LIBIIO_CFILES} ${LIBIIO_HEADERS})
set_target_properties(iio PROPERTIES VERSION ${VERSION} SOVERSION ${LIBIIO_VERSION_MAJOR})
target_link_libraries(iio LINK_PRIVATE ${LIBS_TO_LINK})

if (MSVC)
set_target_properties(iio PROPERTIES OUTPUT_NAME libiio)
endif()

if (NOT SKIP_INSTALL_HEADERS AND NOT SKIP_INSTALL_ALL)
install(FILES ${LIBIIO_HEADERS} DESTINATION "${INSTALL_INC_DIR}")
endif()
Expand Down

0 comments on commit d84e05c

Please sign in to comment.