Re: [CMake] CMAKE_ARGS for FetchContent

2018-07-06 Thread Mads Andreasen
} ${jsoncpp_BINARY_DIR}) endif() Should I then set the -DJSONCPP_XXX options when running the main cmake configure? Best regards, Mads On Fri, Jul 6, 2018 at 12:41 PM Craig Scott wrote: > > > On Fri, Jul 6, 2018 at 8:25 PM, Mads Andreasen wrote: > >> Hi, >> >> I am tryin

[CMake] CMAKE_ARGS for FetchContent

2018-07-06 Thread Mads Andreasen
Hi, I am trying to work with FetchContent in cmake 3.11. I want to use the jsoncpp library and use FetchContent to get and build it. I also want to configure the jsoncpp build with some cmake arguments and I can't seem to get that right. My CMakeLists.txt looks like this: ***