Re: [CMake] Problem with FindXercesC.cmake

2018-09-27 Thread Roger Leigh
On 27/09/18 22:55, Mateusz Loskot wrote: On Thu, 27 Sep 2018 at 23:34, Dorier, Matthieu wrote: When I call find_package(XercesC REQUIRED) and XercesC is not in a standard location, I have to set XercesC_INCLUDE_DIR to its include directory and XercesC_LIBRARY to the location of the library.

Re: [CMake] Problem with FindXercesC.cmake

2018-09-27 Thread Michael Ellery
> On Sep 27, 2018, at 2:55 PM, Mateusz Loskot wrote: > > > >> I use to rely on a custom FindXercesC.cmake file that was using XercesC_ROOT >> to figure all this out. >> Is there any way to do the same here? > > There seem to be no Xxx_ROOT_DIR handled by this module > https://cmake.org/cmake

Re: [CMake] Problem with FindXercesC.cmake

2018-09-27 Thread Mateusz Loskot
On Thu, 27 Sep 2018 at 23:34, Dorier, Matthieu wrote: > > When I call find_package(XercesC REQUIRED) and XercesC is not in a standard > location, I have to set XercesC_INCLUDE_DIR to its include directory and > XercesC_LIBRARY to the location of the library. Correct. If Find-module can not gues

[CMake] Problem with FindXercesC.cmake

2018-09-27 Thread Dorier, Matthieu
Hi, I'm using cmake 3.11.4 and the FindXercesC.cmake file shipped with it. When I call find_package(XercesC REQUIRED) and XercesC is not in a standard location, I have to set XercesC_INCLUDE_DIR to its include directory and XercesC_LIBRARY to the location of the library. If I set XercesC_LI