Skip to content

Commit 1a4bf9e

Browse files
committed
cmake: install nf2ff import library to lib/ on Windows
Same issue as openEMS: INSTALL(TARGETS nf2ff DESTINATION bin) sends both the DLL and the import library (.lib) to bin/, but setup.py only searches lib/ for link libraries. Split into RUNTIME → bin and ARCHIVE → lib${LIB_SUFFIX}. Signed-off-by: Thorsten Liebig <thorsten.liebig@gmx.de> Generated-by: Claude Sonnet 4.6
1 parent 0e15bce commit 1a4bf9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nf2ff/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ TARGET_LINK_LIBRARIES(nf2ff_bin nf2ff)
5555

5656
INSTALL(TARGETS nf2ff_bin DESTINATION bin)
5757
if (WIN32)
58-
INSTALL(TARGETS nf2ff DESTINATION bin)
58+
INSTALL(TARGETS nf2ff RUNTIME DESTINATION bin ARCHIVE DESTINATION lib${LIB_SUFFIX})
5959
else()
6060
INSTALL(TARGETS nf2ff DESTINATION lib${LIB_SUFFIX})
6161
endif()

0 commit comments

Comments
 (0)