While working on a project with Thomas Volkert (Net-Zeal) we ran into the weird situation that on my machine the mfx headers were top-level in the include directory after installation while on his machine they were in include/mfx.
It turns out that he used autotools to install mfx_dispatch while I used CMake, and they currently behave differently. This patch fixes that and now also puts the headers into include/mfx when using CMake to build and install mfx_dispatch.
While working on a project with Thomas Volkert (Net-Zeal) we ran into the weird situation that on my machine the mfx headers were top-level in the include directory after installation while on his machine they were in include/mfx.
It turns out that he used autotools to install mfx_dispatch while I used CMake, and they currently behave differently. This patch fixes that and now also puts the headers into include/mfx when using CMake to build and install mfx_dispatch.
Additionally, I've moved the
cmake_minimum_required
call to the top of the CMakeLists.txt file, as the minimum required version changes the behavior of subsequentproject
calls (see also https://cmake.org/cmake/help/v3.15/command/cmake_minimum_required.html).