I have two targets (libssh2 and curl). Curl wants to know if libssh2 is installed during its configuration step.
Of course it isn¹t at that point. I tried a naïve approach adding a variable that curl uses to see if libssh2 is available (HAVE_LIBSSH2_H) into the cache. SET( HAVE_LIBSSH2_H 1 CACHE INTERNAL "We build libssh2 so tell curl it (will be) here." ) But surprisingly it broke all subsequent configuration searches. (curl is currently in a subdirectory of libssh2) Is there a clean way to handle the scenario configuring software that depends on another target¹s output ? Richard.
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake