Re: [CMake] Can I run a command every time a given target is created?

2013-10-23 Thread Matthew Woehlke
On 2013-10-23 15:41, Paul Smith wrote: I need to be able to run a command after a target is created, every time the target is created. I need this to happen regardless of the command line. Does add_custom_command(TARGET myTarget POST_BUILD ...) do what you want? -- Matthew -- Powered by www

[CMake] Can I run a command every time a given target is created?

2013-10-23 Thread Paul Smith
I need to be able to run a command after a target is created, every time the target is created. I need this to happen regardless of the command line. For example, for Makefile generators if someone runs "make myTarget" directly (if myTarget is a program for example) I still need this command to b

[CMake] Can't Remove CXX_FLAGS entry

2013-10-23 Thread Stewart, Robert
When I generate NMake files for a project, to build on Windows, CMAKE_CXX_FLAGS_DEBUG includes /RTC1. That's fine for most of the libraries in the build tree, but one uses /CLR and that conflicts with /RTC1. Is there a way to update the compiler flags for a particular target? A search reveals

[CMake] cmake policy CMP0022 error

2013-10-23 Thread Clinton Stimpson
I have a target where I do this: SET_TARGET_PROPERTIES(mytarget PROPERTIES LINK_INTERFACE_LIBRARIES "") to hide 3rd party libraries from the link interface. When I do if(APPLE) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12) endif() I get an error at generate time. This is different than my previous ex

Re: [CMake] Changes made for Mac fixup_bundle

2013-10-23 Thread Yoon, Jong Seo
The command I pass to fixup_bundle is fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${LIBRARY_DIRS}\") The arguments printed out is APPS = /Users/jongseoyoon/jsy/crkit/builds/release-1.6_build_2.8.3_2nd/crkit_build/install/bin/TestApp QTPLUGINS = LIBRARY_DIRS = /Users/foo/build/install/i