[CMake] Set project to target Win32 in an x64 Solution

Zamir Khan zamir.khan at gmail.com
Thu Sep 19 08:43:12 EDT 2013


I have a solution which contains multiple projects. All of these projects
typically target an x64 platform. However, recently I have had to introduce
another project which will target Win32/x86. Essentially, this project
results in a process that runs on its own and communicates with the rest of
the software (x64) through IPC. In fact, the x64 process launches the x86
process (and therefore needs access to it's exe file). 

So this is a bit of a special case in that I need my solution to produce a
mixed build and that these mixed modules are still very much part of the
same piece of software.

Ideally, I would like to be able to build what I need using a single CMake
(targetting x64, and making a special exception to change the build
configuration in Visual Studio for the Win32 project). For obvious reasons,
I would like to avoid having to do two separate CMake steps, just for this
one Win32 project. Is this possible?



--
View this message in context: http://cmake.3232098.n2.nabble.com/Set-project-to-target-Win32-in-an-x64-Solution-tp7585557.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list