[CMake] Dependency weirdness

2014-08-23 Thread Phil Smith
A while ago, folks on this list kindly helped me through adding dependency checking for assembler macros with the cross-compiler we use (summary: if module foo.asm uses macro bar.mac, we wanted foo.asm picked up by CMake if bar.mac changed). I recently realized this was no longer working. I had

Re: [CMake] make target export file follow symlinks (or something better?)

2014-08-23 Thread Nico Schlömer
> How do I get LINK_LIBRARIES instead of INTERFACE_LINK_LIBRARIES in the > target file? Got it! It's the PRIVATE attribute for TARGET_LINK_LIBRARIES that i need [1]. Cheers, Nico [1] http://www.cmake.org/cmake/help/v3.0/command/target_link_libraries.html On Sat, Aug 23, 2014 at 3:51 PM, Nico

Re: [CMake] make target export file follow symlinks (or something better?)

2014-08-23 Thread Nico Schlömer
Hi, thanks for your concise reply! > The only exception would be if your mylib does not expose any of the API > that hdf5 provides and a user of mylib does not need to know or care that > you're using hdf5. That is exactly my use case. > In that case you should drop that library from your publi

Re: [CMake] make target export file follow symlinks (or something better?)

2014-08-23 Thread Andreas Pakulat
Hi, On Sat, Aug 23, 2014 at 8:12 AM, Nico Schlömer wrote: > Hi all, > > I'm linking my shared library against > ``` > /usr/lib/x86_64-linux-gnu/libhdf5.so -> libhdf5.so.7.0.0 > /usr/lib/x86_64-linux-gnu/libhdf5.so.7 -> libhdf5.so.7.0.0 > /usr/lib/x86_64-linux-gnu/libhdf5.so.7.0.0 > ``` > resulti