pabloariasal / modern-cmake-sample

Example library that shows best practices and proper usage of CMake by using targets
MIT License
665 stars 70 forks source link

Don't hard-code `include` in include path #14

Open jmairboeck opened 1 year ago

jmairboeck commented 1 year ago

If I have understood this correctly, this line

https://github.com/pabloariasal/modern-cmake-sample/blob/13671e862edda744a07ef423da9f45b3703b59be/libjsonutils/CMakeLists.txt#L29

should use ${CMAKE_INSTALL_INCLUDEDIR} instead of hard-coded include. There are systems which don't use include for that, for example Haiku which uses develop/headers instead.