CargoCultism / goofin

An unordered repository of stuff I tend to forget
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Cmake fails on manjaro: Libnoise in different location #2

Open CargoCultism opened 3 years ago

CargoCultism commented 3 years ago

On manjaro, find_library(libnoise REQUIRED) fails with
Could not find libnoise using the following names: -- Configuring incomplete, errors occurred!

CargoCultism commented 3 years ago

Manjaro: pacman -Ql libnoise: /usr/lib, /usr/include/noise

CargoCultism commented 3 years ago

Manjaro: g++ -I/usr/include/noise teramain.cxx -L/usr/lib/ -lnoise works

CargoCultism commented 3 years ago

Library handling: find_library command, recommended approach to give prio to static lib over shared libraries: find_library(FOOLIB libfoo.a) find_library(FOOLIB foo)