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 bu

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 ContinuumTransfunctioner${CMAKE_DEBU

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 (CMAKE_BUILD_TYPE

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 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 ContinuumTransfunctioner${CMAKE_DEBUG_POSTFIX

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: http://www.cmake.org/Wi

[CMake] Saving clang output to file when cmake is used with CLion

2017-04-12 Thread mike lojkovic
I have a script I'm using to figure out which headers should be in my precompiled header. It requires the clang -H flag passed to work. I'm able to get the output on the console without issue, but can't figure out how to just pass clang's output to a file for my script to analyze. redirecting the c