-
Notifications
You must be signed in to change notification settings - Fork 37
Merging static libs with MSVC does not work. #36
Copy link
Copy link
Open
Description
FMIL tries to merge static libs with the function merge_static_libs. However this does not seem to work with MSVC.
I am trying to debug the issue but looking at the code responsible for merging libs with MSVC
fmi-library/Config.cmake/mergestaticlibs.cmake
Lines 57 to 69 in fc8d2eb
| # Now the easy part for MSVC and for MAC | |
| if(MSVC) | |
| # lib.exe does the merging of libraries just need to conver the list into string | |
| foreach(CONFIG_TYPE ${CMAKE_CONFIGURATION_TYPES}) | |
| set(flags "") | |
| foreach(lib ${libfiles_${CONFIG_TYPE}}) | |
| set(flags "${flags} ${lib}") | |
| endforeach() | |
| string(TOUPPER "STATIC_LIBRARY_FLAGS_${CONFIG_TYPE}" PROPNAME) | |
| set_target_properties(${outlib} PROPERTIES ${PROPNAME} "${flags}") | |
| endforeach() | |
| elseif(APPLE) |
I can not see anything relevant to actually merging the libraries.
Is there something else that does the merging? If so where is it located so we can continue debugging.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels