Re: [CMake] Directing cmake to link against shared object with debug postfix (_d)

2017-04-12 Thread Nils Gladitz
On 12.04.2017 17:48, Olumide wrote: Thanks Nils. BTW, shouldn't that be ContinuumTransfunctioner$<$:_d> Transmogrifier$<$:_d> Ah right given your specific case, yes. Nils -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Directing cmake to link against shared object with debug postfix (_d)

2017-04-12 Thread Olumide
Thanks Nils. BTW, shouldn't that be ContinuumTransfunctioner$<$:_d> Transmogrifier$<$:_d> Thanks, - Olumide On 12/04/2017 15:56, Nils Gladitz wrote: On 04/12/2017 04:49 PM, Olumide wrote: set(Libraries

Re: [CMake] Directing cmake to link against shared object with debug postfix (_d)

2017-04-12 Thread Nils Gladitz
On 04/12/2017 04:49 PM, Olumide wrote: set(Libraries ContinuumTransfunctioner${CMAKE_DEBUG_POSTFIX} Transmogrifier${CMAKE_DEBUG_POSTFIX} ) Perhaps try with generator expressions: set(Libraries ContinuumTransfunctioner$<$:d> Transmogrifier$<$:d> ) Maybe alternatively create a

Re: [CMake] Directing cmake to link against shared object with debug postfix (_d)

2017-04-12 Thread Olumide
Thanks Volker. I wonder if its possible to do go with the Robert's original suggestion: set(Libraries ContinuumTransfunctioner${CMAKE_DEBUG_POSTFIX} Transmogrifier${CMAKE_DEBUG_POSTFIX} ) But set on debug build set CMAKE_DEBUG_POSTFIX. For example: ## Does not work if

Re: [CMake] Directing cmake to link against shared object with debug postfix (_d)

2017-04-12 Thread Volker Enderlein
Am 12/04/2017 um 13:28 schrieb Olumide: set(Libraries ContinuumTransfunctioner${CMAKE_DEBUG_POSTFIX} Transmogrifier${CMAKE_DEBUG_POSTFIX} ) Hi, you could add the configuration for a single library dependency. target_link_libraries(your_target debug

Re: [CMake] Directing cmake to link against shared object with debug postfix (_d)

2017-04-12 Thread Olumide
Thanks Robert. However it appears that the release build is linking against ContinuumTransfunctioner_d and Transmogrifier_d. How can I omit the _d suffix in the release build. Regards, - Olumide On 11/04/2017 19:50, Robert Maynard wrote: CMAKE_DEBUG_POSTFIX is only used by CMake when it

Re: [CMake] Directing cmake to link against shared object with debug postfix (_d)

2017-04-11 Thread Robert Maynard
CMAKE_DEBUG_POSTFIX is only used by CMake when it builds libraries to determine what exact file name the executable/library should have. In your case you will need to do something like: set(Libraries ContinuumTransfunctioner${CMAKE_DEBUG_POSTFIX} Transmogrifier${CMAKE_DEBUG_POSTFIX} )

[CMake] Directing cmake to link against shared object with debug postfix (_d)

2017-04-11 Thread Olumide
Dear List, I've got a cmake project that pretty much looks like this: ### cmake_minimum_required(VERSION 3.0) SET(CMAKE_DEBUG_POSTFIX "_d") include_directories(../TransfunctionerProject) include_directories(../TransmogrifierProject)