Skip to content

Commit 4e15458

Browse files
committed
Add capability to set cmake generator and architecture
1 parent 851a4ea commit 4e15458

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ dependencies {
4747
task cmakeTask(type: Exec) {
4848
workingDir = buildDir
4949
executable = 'cmake'
50+
def buildArgs = [".."]
51+
if (project.properties.TILEDB_CMAKE_GENERATOR) {
52+
buildArgs << "-G" << project.properties.TILEDB_CMAKE_GENERATOR
53+
}
54+
if (project.properties.TILEDB_CMAKE_ARCHITECTURE) {
55+
buildArgs << "-A" << project.properties.TILEDB_CMAKE_ARCHITECTURE
56+
}
5057
[
5158
"TILEDB_GIT_REPOSITORY",
5259
"TILEDB_GIT_TAG",

0 commit comments

Comments
 (0)