Re: [CMake] avoiding finding system libraries (motivation is superbuilds)

2017-05-16 Thread Kris Thielemans
Thanks Robert indeed, according to https://cmake.org/cmake/help/v3.5/command/find_library.html#command:find_library this should have worked, but it doesn't. We use the following in our ExternalProject_Add CMAKE_ARGS -DCMAKE_PREFIX_PATH=${CMAKE_CURRENT_BINARY_DIR}/INSTALL -D

Re: [CMake] avoiding finding system libraries (motivation is superbuilds)

2017-05-05 Thread Robert Maynard
Have you tried using CMAKE_PREFIX_PATH instead of CMAKE_INSTALL_PREFIX? On Thu, May 4, 2017 at 5:13 PM, Kris Thielemans wrote: > Hi > > > > Short question: if we have a library/include files installed both in the > usual system locations and outside, how do we force CMake to find the > latter? (

[CMake] avoiding finding system libraries (motivation is superbuilds)

2017-05-04 Thread Kris Thielemans
Hi Short question: if we have a library/include files installed both in the usual system locations and outside, how do we force CMake to find the latter? (without modifying the CMake files of the project). Motivation: We're trying to make a SuperBuild that builds/downloads a specific versi