Following-up a previous message "Re: [CMake] Updating cache entries on variable modification", I would like
to encapsulate the FIND_LIBRARY.

Taking a simple example, let's assume that I'd like to have a list of all the calls of FIND_LIBRARY I did. Is there a way of creating a cmake script that basically does something like:

MACRO(SAVED_FIND_LIBRARY)
   FIND_LIBRARY(${ARGN})
ENDMACRO()

MACRO(FIND_LIBRARY VAR)
   SET(MY_LIB_LIST ${MY_LIB_LIST} ${VAR})
   SAVED_FIND_LIBRARY(${VAR} ${ARGN})
ENDMACRO()

Obviously this does not work....
Is there a tricky way to achieve this, or should resign myself to use a new name ?

   Thank's...

_______________________________________________
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

Reply via email to