gradle-native icon indicating copy to clipboard operation
gradle-native copied to clipboard

c++ cmake-library passing build arguments

Open HarrisDePerceptron opened this issue 6 years ago • 0 comments

Pass build arguments to cmake

Expected Behavior

cmake {
...
arguments.set(listOf("-DBUILD_WHATEVER=< value >", "-DBUILD_WHATEVER2=< value >"))
}

should be able to pass build arguments. something similar to this

Current Behavior

Script compilation error:

Line 21: arguments.set(listOf("-DWITH_GSTREAMER=ON", "-DBUILD_EXAMPLES=OFF")) ^ Unresolved reference: arguments

1 error

Context

Need to pass arguments for various build options

Steps to Reproduce (for bugs)

cmake {
...
arguments.set(listOf("-DBUILD_WHATEVER=< value >", "-DBUILD_WHATEVER2=< value >"))
}

Your Environment

  • Build scan URL: https://scans.gradle.com/s/tdtllgn4xqaz4

HarrisDePerceptron avatar Dec 03 '19 12:12 HarrisDePerceptron