On Tuesday 12 May 2009, Olivier Delannoy wrote:
> Hi,
> I am trying to integrate third party library without doing recursive
> project and the add_subdirecty command. I would like to know what is
> the syntax that could allow something similar to:
> where IMPORT_LIBRARY_${_LIB}_USED_BY is defined when including the
> import library definition in the current project.
>
> macro(target_use_import_library _LIB _TARGET)
> # more bookeeping here
> IMPORT_LIBRARY_${_LIB}_USED_BY(${_TARGET})
> # more bookeeping here
> endmacro(target_use_import_library)
>
> Cmake include failed reporting an error about command name expected.

Yes, constructing names of macros/functions is not supported.
You'll have to find a different way to do it.
Maybe you could construct the name of a file which is included ?

Alex
_______________________________________________
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