cmake .. from the build dir
CMake finds pugixml
CMake Error at /usr/local/Cellar/cmake/3.7.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find PugiXML (missing: PUGIXML_INCLUDE_DIR PUGIXML_LIBRARIES)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.7.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindPugiXML.cmake:5 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:22 (find_package)
OS: OS X El Capitan / macOS Sierra
CMake: 3.7.1
pugixml: 1.8.1
Try: cmake -DPUGIXML_INCLUDE_DIR=/usr/local/opt/pugixml/include/pugixml-1.8 -DPUGIXML_LIBRARIES=/usr/local/opt/pugixml/lib/pugixml-1.8 ..
That works, but it's a workaround. CMake should be able to find the paths without having to specify them, it worked before and I'm not sure how it broke.
@jakon89 It's actually: cmake .. -DPUGIXML_INCLUDE_DIR=/usr/local/opt/pugixml/include/pugixml-1.8 -DPUGIXML_LIBRARIES=/usr/local/opt/pugixml/lib/pugixml-1.8/libpugixml.a
You have to give the full path to the binary, otherwise cmake will ignore your definition. :)