Thank you Don, that was it. Querying and storing the args before a call to
'project' and your loop and your conditional were the key.
On Wed, Jan 31, 2018 at 10:14 PM Don Hinton wrote:
> Hi Saad:
>
> On Wed, Jan 31, 2018 at 6:47 PM, Saad Khattak
>
Hi Saad:
On Wed, Jan 31, 2018 at 6:47 PM, Saad Khattak wrote:
> Thanks J. I could use that to add preprocessor definitions.
>
> However, my question was how I could forward 'all' the command line
> options that the user uses to generate the SuperBuild project. Suppose I
>
Thanks J. I could use that to add preprocessor definitions.
However, my question was how I could forward 'all' the command line options
that the user uses to generate the SuperBuild project. Suppose I somehow
managed to capture all the command line arguments which can include
variables specific
(platfrom defines is a variable suitable for like ADD_DEFINITIONS(
${PLATFORM_DEFINES} )
string( REPLACE ";" " " PLATFORM_DEFINES_ARG "${PLATFORM_DEFINES}" )
ExternalProject_Add( target
CMAKE_ARGS -DPLATFORM_DEFINES=${PLATFORM_DEFINES_ARG}
..
)
and in the target
I have the following setup:
Superbuild
- ExternalProject_Add(a...)
- ExternalProject_Add(b...)
- ExternalProject_Add(c...)
- ExternalProject_Add(d...)
The SuperBuild is built from command line with some options e.g.
-DMY_OPTION=TRUE. I would like all these options to be passed to each