Re: [CMake] Passing CMake Arguments to FetchContent

2019-03-22 Thread Craig Scott
On Sat, Mar 23, 2019 at 1:58 PM Jason Beach wrote: > I'm upgrading from cmake 3.5.1 and am trying to understand the new > FetchContent command. So far I have: > > cmake_minimum_required(VERSION 3.14) > project (json_test) > > include(FetchContent) > set(JSON_BuildTests OFF) #if I try this I get a

[CMake] Passing CMake Arguments to FetchContent

2019-03-22 Thread Jason Beach
I'm upgrading from cmake 3.5.1 and am trying to understand the new FetchContent command. So far I have: cmake_minimum_required(VERSION 3.14) project (json_test) include(FetchContent) set(JSON_BuildTests OFF) #if I try this I get a warning as it appears to be deprecated FetchContent_Declare(