Re: [CMake] How to use a generated linker map with a shared library?

2017-01-14 Thread Paul Smith
On Sun, 2017-01-15 at 12:08 +1100, Craig Scott wrote: > While not directly answering your question, it seems you may be trying > to deal with symbol visibility. Are you aware of CMake's symbol > visibility features? A good place to start would be the > GenerateExportHeader module, the documentation

Re: [CMake] How to use a generated linker map with a shared library?

2017-01-14 Thread Craig Scott
While not directly answering your question, it seems you may be trying to deal with symbol visibility. Are you aware of CMake's symbol visibility features? A good place to start would be the GenerateExportHeader module, the documentation for which

[CMake] How to use a generated linker map with a shared library?

2017-01-14 Thread Paul Smith
I'm really stuck: maybe someone can provide a hint. I'm trying to create a shared library from a bunch of object files, and use a linker script to mark almost all the symbols as local.  The tricky thing is I'm auto-generating the linker script via a shell script that examines the object files for

Re: [CMake] Custom command on cpack target

2017-01-14 Thread Gonzalo Garramuño
El 10/01/17 a las 17:34, Gonzalo Garramuño escribió: I would like to run a custom command on the zip file generated by cpack. The idea is that I want to calculate its sha256 checksum. Unfortunately it seems the zip file cannot be a target in a CMakeLists.txt file or I'm doing something wro

[CMake] cmake 3.7.2: add_custom_command can't DEPEND on OBJECT library?

2017-01-14 Thread Paul Smith
If I create an OBJECT library: add_library(libIface OBJECT iface.cpp) Then I create a custom command that depends on this: add_custom_command(OUTPUT out.map      COMMAND touch out.map     DEPENDS libIface      VERBATIM) It doesn't work: the dependency is missing so when I edit the iface

Re: [CMake] Find Vulkan on 32 bit builds

2017-01-14 Thread Matthäus G . Chajdas
Hi, I've filed a bug report with LunarG. The issue is here: https://vulkan.lunarg.com/issue/view/587509589ab0fa2af19621ca In the meantime, I'll prepare an update which can handle /lib, /lib32 and adds the NO_DEFAULT_PATH in case of 32-bit Windows. Thanks for the report! Cheers, Matthäus Am 10