Repository navigation
[RFC] cmake: targets: check lib or lib64 path - #3035
Conversation
Linkage against lib or lib64 should be taken into assumption.
Without it we get:
The imported target "assimp::assimp" references the file
"/usr/lib/libassimp.so.5"
When compiling against x86_64 target. The library of couse exits in
/usr/lib64.
see:
https://cmake.org/cmake/help/v3.17/prop_gbl/FIND_LIBRARY_USE_LIB64_PATHS.html
As i am not a master of cmake this should be double checked if
it doesn't break anything.
Signed-off-by: Nikita Shubin <[email protected]>
|
Might be related to #2719 |
It is stated nowhere that libs always live in |
|
esp. Debian based systems (Ubuntu, Mint,...) use a multi-arch approach that goes way beyond supporting a "32bit and 64bit variants of the same CPU" and does not use the |
|
Merged, thanks a lot for your contribution. |
|
@kimkulling I don't think merging this was a good idea. Just guessing that libs will be in |
Linkage against lib or lib64 should be taken into assumption.
Without it we get:
The imported target "assimp::assimp" references the file
When compiling against x86_64 target. The library of couse exits in
/usr/lib64.
see:
https://cmake.org/cmake/help/v3.17/prop_gbl/FIND_LIBRARY_USE_LIB64_PATHS.html
As i am not a master of cmake this should be double checked if
it doesn't break anything.
Signed-off-by: Nikita Shubin [email protected]