Displaying 1 result from an estimated 1 matches for "cmake_required_flags".
2018 Dec 27
2
[CMake] CMAKE_TOOLCHAIN_FILE and projects
...etc. It enables a simpler,
and more versatile build script.
With tip of the tree on llvm and sub-projects now, when I use a toolchain
file, I'm finding I have to make edits to the config-ix.cmake files. The
issue is related to re-defining CMAKE_SYSROOT and the use of; among others:
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nodefaultlibs")
When this flag is used in stand-alone cross-compiled builds (using
toolchain file to set the CMAKE_SYSROOT), it causes all the subsequent flag
checks to fail.
I think leveraging an implied CMake toolchain file for sub-projects should
be the pref...