View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015706 | CMake | CMake | public | 2015-08-21 21:45 | 2016-06-10 14:31 | ||||
Reporter | ovz | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | Linux | OS | OS Version | ||||||
Product Version | CMake 3.2.3 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015706: link_directories ignores <some path>/lib | ||||||||
Description | If 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |