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
When cross-compiling using Emscripten ( https://emscripten.org/ ) find_package(DL REQUIRED) should always be successful, as the functions usually contained in the dlfcn.h header are already linked without the need of linking any additional library (such as dl in Linux).
However, instead the FindDL.cmake script currently provided in ignition-cmake fails, for two reasons:
It searches for a dl library in any non-Windows system, while it should observe the CMAKE_DL_LIBS standard CMake variable and only search for a library if CMAKE_DL_LIBS is non-empty.
For some reason, the script fails to find the dlfcn.h system header provided by emscripten
The solution for the first problem is trivial, but I am not sure what is the reason behind the second problem.
The text was updated successfully, but these errors were encountered:
Original report (archived issue) by Silvio Traversaro (Bitbucket: traversaro).
When cross-compiling using Emscripten ( https://emscripten.org/ )
find_package(DL REQUIRED)
should always be successful, as the functions usually contained in thedlfcn.h
header are already linked without the need of linking any additional library (such asdl
in Linux).However, instead the
FindDL.cmake
script currently provided in ignition-cmake fails, for two reasons:It searches for a
dl
library in any non-Windows system, while it should observe theCMAKE_DL_LIBS
standard CMake variable and only search for a library ifCMAKE_DL_LIBS
is non-empty.For some reason, the script fails to find the
dlfcn.h
system header provided by emscriptenThe solution for the first problem is trivial, but I am not sure what is the reason behind the second problem.
The text was updated successfully, but these errors were encountered: