[CMake] CMAKE 2.8.5 - CMAKE_GENERATOR Bug?
John Drescher
drescherjm at gmail.com
Thu Feb 2 12:42:03 EST 2012
On Thu, Feb 2, 2012 at 12:33 PM, Sarnath K - ERS, HCLTech
<k_sarnath at hcl.com> wrote:
> All,
>
>
>
> I was trying to use the external project add feature to add a 32-bit VC++
> project on a 64-bit parent build system.
>
> However, I ran into problems while compiling the 32-bit project.
>
> “devenv” used to complain “invalid solution configuration”
>
> I tried to explicitly set “CMAKE_BUILD_TYPE” using –D option as well as in
> the CMakeLists.txt.
> Nothing changed.
>
>
>
> However, when I enabled “CMAKE_VERBOSE_MAKEFILE”, I found that “CMAKE” was
> “not” passing the –G option correctly.
>
> Instead of passing <cmake –G “Visual Studio 9 2008”>, cmake was actually
> configuring the project as <cmake “-G Visual Studio 9 2008”>
>
> (Note that –G is inside the double-quote)
>
>
>
> When I isolate the build-step and build it manually using the correct
> syntax, everything works flawlessly.
>
>
>
> Specifying the generator via “CMAKE_ARGS” helps me compile. But CMAKE still
> appends the faulty –G syntax and
>
> hence is not producing the intended results for me.
>
>
>
> If this is indeed a bug, can some one tell me:
>
> 1. What is the temporary workaround for this?
>
> 2. If at all fixed, how long will it take the build to come out?
>
I am not seeing this breakage. However you are 2 versions behind in cmake.
John
More information about the CMake
mailing list