On 08/22/2018 03:49 PM, Richard Shaw wrote:
> Initially I tried setting the flags before invoking "project" and that seemed
> to be enough for Fedora. I've tried other things as well that I've probably
> forgotten but one other method I tried was:
> 
> set(CMAKE_REQUIRED_DEFINITIONS "--specs=nosys.specs")

That's only used by Check* modules.  It does not affect flags in general.

>From the ubuntu issue:

> The target system is: Generic - 1 - arm
> The host system is: Linux - 4.15.0-32-generic - x86_64

You're cross-compiling.  What is your CMAKE_TOOLCHAIN_FILE?

-Brad
-- 

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:
https://cmake.org/mailman/listinfo/cmake

Reply via email to