[CMake] Alternative to `add_compile_options` in Toolchain Files

2019-03-26 Thread Jayesh Badwaik
Hi, In https://gitlab.kitware.com/cmake/cmake/issues/19074, it was mentioned that instead of `add_compile_options`, `CMAKE_CXX_FLAGS_INIT` should be used. An issue with this is that `CMAKE_CXX_FLAGS_INIT` flags are propogated to the linker as well, wherein, the linker warns about `[-Wunused-com

Re: [CMake] Parent component options passed to ExternalProject

2019-03-26 Thread Craig Scott
On Tue, Mar 26, 2019 at 4:02 AM Dustyn Blasig wrote: > Hi All, > > I'm really struggling to use ExternalProject_Add() in our CMake project. > > Based on the documentation, I was expecting the simplest Git-based > external project with all defaults to act just like using a Git submodule > locked a