Re: [CMake] Embedding one project inside a second

2011-06-06 Thread Glenn Coombs
A simple set of CMAKE_C_FLAGS or CMAKE_CXX_FLAGS will set the value for the current directory and below: set(CMAKE_C_FLAGS"${CMAKE_C_FLAGS} -m32") Any add_directory() commands after the above line will inherit the -m32 flag. -- Glenn On 5 June 2011 20:36, Richard Offer wrote: > > I ha

[CMake] Embedding one project inside a second

2011-06-05 Thread Richard Offer
I have two distinct projects - A and B - each has its own subversion repository etc - they are quite independent. Project A is nw and needs to be built 32bit and itself comprises both in-house and third party code. The third party code is built using ExternalProject_Add() Project B is built 64b