Hi Our project is a virtual machine. All of the VM software must be compiled for the host platform. But, since the software is a VM emulating some target platform the VM tests must be cross compiled for the target. And we have several targets. Thus, in the top VM build the CMAKE_CROSSCOMPILING flag must not be set to true.
But if we set the CMAKE_CROSSCOMPILING flag into a test subdirectory and change the variables such as CMAKE_C_COMPILER for the corresponding target platform in some nested CMakeLists.txt what is the scope of the change ? Will it change the value of the variable for all future accesses or these variables have a directory and sub-directories scope ? This is not clear in the documentation. Vania -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
