I use cmake and do to compile the project using an external library (speex). This library was found by the find_library command in my CMakeLists.txt. The only problem is that the cmake path is included by default, which does not include '/ usr / local / include /', i.e. the location of speex headers.
I do not want to add '/ usr / local / include' to the search path in CMakeLists.txt because it (I suppose) would create an error in windows where such a path does not exist. Moreover, it will be a dirty trick, I do not really like this decision.
Do you know a solution to this problem that would be portable and clean?
Thank you for your time.
source
share