I have quite a specific problem with find_path where "find_path(IOKIT_INCLUDE_DIR "IOKit/pci/IOPCIDevice.h")" returns "/System/Library/Frameworks/Kernel.framework/Headers/IOKit/pci" rather than "/System/Library/Frameworks/Kernel.framework/Headers/".
It is reproducible on OSX with the following CMakeLists.txt: cmake_minimum_required(VERSION 3.0) find_path(IOKIT_INCLUDE_DIR "IOKit/pci/IOPCIDevice.h") message("Path returned: ${IOKIT_INCLUDE_DIR}") Here is a patch which seems to fix it for me: Harry Mallon CODEX | Software Engineer 60 Poland Street | London | England | W1F 7NT E ha...@codexdigital.com | T +44 203 7000 989
0001-Fix-a-problem-where-using-find_path-to-find-a-header.patch
Description: 0001-Fix-a-problem-where-using-find_path-to-find-a-header.patch
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers