Bill Hoffman <[EMAIL PROTECTED]>
writes:

>> Solved:
>>
>> target_link_libraries(myexe "`/path/to/script arg1 arg2`")
>>
> This is in general a non-portable way to write cmake files, and is not
> guaranteed to work in any version of CMake.  This is the same as a
> pkg-config script.  The way to do this is to use execute_process and
> collect the output at cmake time, and then use target_link_libraries.

Thanks for the warning, but I need the output at make invokation time,
unless there is a way to create a dependency such that cmake runs and
the makefile is regenerated when the script changes.

-- 
Oscar

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to