bilke / cmake-modules

Additional CMake functionality. Most of the modules are from Ryan Pavlik (https://github.com/rpavlik/cmake-modules)
Boost Software License 1.0
542 stars 215 forks source link

Command Line Arguments #62

Closed antonioivanov6 closed 2 years ago

antonioivanov6 commented 2 years ago

Hello.

When I called "make someCoverageTarget 127.0.0.1 1918", the command line parameters could not be passed to the application. Even if i use the variable $ {EXECUTABLE_ARGS}, the effect is the same. What could I do?

bilke commented 2 years ago

You simply cannot pass cli args via make.

Please note that ${EXECUTABLE_ARGS} is a CMake variable, it has to be passed to CMake, not to make, e.g.:

cmake . -DEXECUTABLE_ARGS="127.0.0.1 1918"
make someCoverageTarget