-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Linux the CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES detected by CMake is different from the default search path of linker #129
Comments
The problem emerged in conda-forge/gazebo-feedstock#37 (comment), where the CMake calls to |
I am not sure, but if anyone is interesting in investigating this probably a good file were to start is : https://github.com/Kitware/CMake/blob/v3.19.1/Modules/CMakeParseImplicitLinkInfo.cmake . |
Actually, even if a project uses |
Is this still an issue? |
In CMake the variable
CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES
contains the link directories that the linker already considers by default, and you can easily check its value by a the example provided in https://gist.github.com/traversaro/1d6e3bb4e737ba80ef6ad255e3734a32 :The
CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES
is used by CMake for automatically ignoring this directories if a build system pass them to thelink_directories
command. However, on conda-forge, it seems that the linker default search path to do not match the search path of the linker (see https://stackoverflow.com/questions/9922949/how-to-print-the-ldlinker-search-path):In particular,
ld
seems to use non-relocatable directories in its search path.Environment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: