[CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
Hi, I am investigating https://bugreports.qt-project.org/browse/QTBUG-30938 and I wanted to see what cmake exports when it export() is used with a framework target. I created a shared library and ran cmake with -GXcode, then cmake --build ., but it seems to only create a release library. I

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
Stephen Kelly wrote: and I wanted to see what cmake exports when it export() is used with a framework target. I created a shared library and ran cmake with -GXcode, then cmake --build ., but it seems to only create a release library. I thought Xcode generated rules for multiple configurations?

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
Stephen Kelly wrote: or --config Release to build a particular configuration. However, the debug and release names are the same. I also ran cmake with -DCMAKE_DEBUG_POSTFIX=Debug but that didn't make any difference. This makes a difference for non-frameworks, but does not make a

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
Stephen Kelly wrote: Is it possible to build multi-config frameworks with cmake at all? I also notice that the Framework unit test uses set_target_properties(foo PROPERTIES FRAMEWORK TRUE DEBUG_POSTFIX -d ) but the debug file is called 'foo', not 'foo-d'. If I use cmake --build .

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - Stephen Kelly wrote: Is it possible to build multi-config frameworks with cmake at all? I also notice that the Framework unit test uses set_target_properties(foo PROPERTIES FRAMEWORK TRUE DEBUG_POSTFIX -d ) but the debug file is called 'foo',

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
clin...@elemtech.com wrote: - Original Message - Stephen Kelly wrote: Is it possible to build multi-config frameworks with cmake at all? I also notice that the Framework unit test uses set_target_properties(foo PROPERTIES FRAMEWORK TRUE DEBUG_POSTFIX -d ) but

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - clin...@elemtech.com wrote: - Original Message - Stephen Kelly wrote: Is it possible to build multi-config frameworks with cmake at all? I also notice that the Framework unit test uses set_target_properties(foo PROPERTIES

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - - Original Message - clin...@elemtech.com wrote: - Original Message - Stephen Kelly wrote: Is it possible to build multi-config frameworks with cmake at all? I also notice that the Framework unit test uses

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
clin...@elemtech.com wrote: - Original Message - clin...@elemtech.com wrote: - Original Message - Stephen Kelly wrote: Is it possible to build multi-config frameworks with cmake at all? I also notice that the Framework unit test uses

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - clin...@elemtech.com wrote: - Original Message - clin...@elemtech.com wrote: - Original Message - Stephen Kelly wrote: Is it possible to build multi-config frameworks with cmake at all? I also notice that

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
clin...@elemtech.com wrote: Or Release/foo.framework/foo Debug/foo.framework/foo-d Ok, but the framework version of the linker flags -L,-l are used like this: -F/path/to/framework -framework foo which result in the linker would look for this file /path/to/framework/foo.framework/foo

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Clinton Stimpson
On Friday, May 03, 2013 05:48:20 PM Stephen Kelly wrote: clin...@elemtech.com wrote: Or Release/foo.framework/foo Debug/foo.framework/foo-d Ok, but the framework version of the linker flags -L,-l are used like this: -F/path/to/framework -framework foo which result in the