Alexander Neundorf <[EMAIL PROTECTED]>
writes:

>> >> The problem is in execute_process. The cmake process created by it is
>> >> taking variable values from the enclosing cmake, so it uses the same
>> >> compiler, configure variables, etc.
>> >
>> > What do you mean by "variables"?
>> > CMake one or
>> > Environment one?
>>
>> When cmake is invoked with -DCMAKE_TOOLCHAIN_FILE=foo, the nested cmake
>> runs as invoked with this definition as well. It takes config-assigned
>> variables from the parent cmake, too. 
>
> I don't see how this should happen. Do you cross-compile in-source ?

No.

> The the second cmake would see the CMakeCache.txt from the cross compile.
> In that case: don't build in-source.
> If this is not the reason, please post a small example project so I can see 
> what's going on.

I'll put this on my TODO and create a bug report.

For now, I translated the cmake invocation to build time and it works.

-- 
Oscar

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to