Hello Robert,

On 19/01/15 20:42, Robert Dailey wrote:
> I'm running CMake 3.1 on Mint 64-bit OS. I need to generate an Eclipse
> project using Ninja that uses Clang to build a 32-bit application.
> 
> When I do this:
> 
> add_definitions("-m32")
> 
> For some reason my code is not able to include STL headers (files not
> found). Any reason for this? Is there a more proper way to specify
> 32-bit compilation so STL include paths are set?

You could try setting this two variables at configure time:
-DCMAKE_C_COMPILER_ARG1=-m32 -DCMAKE_CXX_COMPILER_ARG1=-m32

Hope this helps,
Gregpor
-- 

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

Reply via email to