View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015706CMakeCMakepublic2015-08-21 21:452016-06-10 14:31
Reporterovz 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformLinuxOSOS Version
Product VersionCMake 3.2.3 
Target VersionFixed in Version 
Summary0015706: link_directories ignores <some path>/lib
DescriptionIf I put the following line into CMakeLists.txt Unix Makefile generator doesn't add flag -L<env_dir_content>/lib to linker flags.

link_directories("${env_dir}/lib")

If I change the call to

link_directories("${env_dir}")

I can see -L<env_dir_content> among linker flags.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0039315)
Rolf Eike Beer (developer)
2015-08-22 01:22

Just guessing: is ${env_dir}/lib maybe in the systems default linker paths (e.g. ich ${env_dir}=/usr)?

Otherwise, don't use link_directories. Pass absolute paths to target_link_libraries(), CMake will handle the rest.
(0042825)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2015-08-21 21:45 ovz New Issue
2015-08-22 01:22 Rolf Eike Beer Note Added: 0039315
2016-06-10 14:29 Kitware Robot Note Added: 0042825
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team