I'm compiling for a "Generic" system (which will probably change as the CMake support in our toolchain improves), and I'm cross-compiling. So GNUInstallDirs is not included.
This breaks the next few lines break, because CMAKE_INSTALL_INCLUDEDIR was never set:
I think it's best to include GNUInstallDirs unconditionally. Although I'm not sure how deployment on Windows works.
It's worth noting that our toolchain is using a GNU toolchain layout with /usr/local/include (but it's also using clang in MSVC compatibility mode to compile for Windows - similar to cygwin/mingw, except it's neither of those).
I'm cross-compiling and getting the following:
This has to do with:
https://github.com/mborgerding/kissfft/blob/8f47a67f595a6641c566087bf5277034be64f24d/CMakeLists.txt#L104-L110
I'm compiling for a "Generic" system (which will probably change as the CMake support in our toolchain improves), and I'm cross-compiling. So
GNUInstallDirs
is not included.This breaks the next few lines break, because
CMAKE_INSTALL_INCLUDEDIR
was never set:https://github.com/mborgerding/kissfft/blob/8f47a67f595a6641c566087bf5277034be64f24d/CMakeLists.txt#L112-L117
I think it's best to include
GNUInstallDirs
unconditionally. Although I'm not sure how deployment on Windows works.It's worth noting that our toolchain is using a GNU toolchain layout with
/usr/local/include
(but it's also using clang in MSVC compatibility mode to compile for Windows - similar to cygwin/mingw, except it's neither of those).