Closed usernameiwantedwasalreadytaken closed 7 years ago
I have thought about it, but packages, generally, use find_library
to link a library, which is more robust. However, a lot of header-only libraries just assume the headers are available, so the include_directories
is necessary.
Ok. That makes sense.
The generated
cget.cmake
file does include ainclude_directories(SYSTEM ${CMAKE_PREFIX_PATH}/include)
statement.However, it would be nice if it included a similar
link_directories(${CMAKE_PREFIX_PATH}/lib)
statement.Right now, I have to add this in my own
CMakeLists.txt
, so this is not a problem, just a suggestion.