You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to integrate libfort as part of a project built using CMake. I would like to link to it either statically by using a .lib file, or dynamically but with exports linked through a .lib file also.
I can't figure out how to build libfort one way or the other using CMake. All I've managed is to generate a .dll file alone.
Any pointers ?
Thanks !
The text was updated successfully, but these errors were encountered:
# Workaround to force symbol exportset(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
include(FetchContent)
FetchContent_Declare(libfort
GIT_REPOSITORY https://github.com/seleznevae/libfort.git
GIT_TAG v0.4.2
STEP_TARGETS build
)
FetchContent_MakeAvailable(libfort)
# Workaround to force symbol exportset(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS FALSE)
But I think it would be better to have dllexport directives in the source code directly.
Hi,
I am trying to integrate libfort as part of a project built using CMake. I would like to link to it either statically by using a
.lib
file, or dynamically but with exports linked through a.lib
file also.I can't figure out how to build libfort one way or the other using CMake. All I've managed is to generate a
.dll
file alone.Any pointers ?
Thanks !
The text was updated successfully, but these errors were encountered: