[CMake] Copying of 3rd party DLLs in a POST-BUILD step

Hauke Heibel hauke.heibel at googlemail.com
Mon Jan 9 10:17:56 EST 2012


On Mon, Jan 9, 2012 at 4:11 PM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> The only issue I really have with this is that this macro requires there to be BOTH debug and Release libraries available and will copy BOTH no matter which configuration is being built. I am thinking that the "yourCopyDlls.cmake" could be auto generated based on what the programmer says they need and then do the appropriate copy.

I experienced the exact same problem in the beginning - both libraries
had to be available. IIRC, passing ${CMAKE_CFG_INTDIR} to the script
allowed me to overcome this issue. The script does not even need to be
auto-generated. I am using one and the same script for all build
types.

- Hauke


More information about the CMake mailing list