Hi Chris.
Try using the the CMAKE_CXX${std}_STANDARD_COMPILE_OPTION variable. For
example, the folowing piece of CMake code:
cmake_minimum_required(VERSION 3.9)
project(foo CXX)
foreach(std IN ITEMS 98 11 14 17)
message("C++${std} std flags: ${CMAKE_CXX${std}_STANDARD_COMPILE_OPTION}")
mess
I am pretty sure you currently can't extract the compile flag information.
This would be an enhancement and would have to be done as a generator
expression.
On Tue, May 29, 2018 at 5:37 PM Chris Green wrote:
> Hi,
> We have to use a utility (Root's rootcling/genreflex tool) as part of a
> custom
Hi R0b0t1,
add_definitions() is for adding preprocessor macro definitions (-D
options), not for general compilation options such as -m. You should set
the options as compilation options instead, using target_compile_options.
Also, -mwindows should probably not be passed directly; instead, use
CMak