Matthew Von-Maszewski
12/24/2024, 6:01 PMtask cmakeGenericLinuxRelease(type:Exec) {
workingDir = "${projectDir}"
if (cArch.contains("aarch64")) {
environment("CXXFLAGS","-fPIC")
} else {
environment("CXXFLAGS","-fPIC -march=westmere")
}
commandLine 'cmake', "-CStardogCache.txt", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_INSTALL_LIBDIR=lib/main/release", "-B", "$projectDir", "-S", "$projectDir"
// dependsOn unZipSource
inputs.file("$projectDir/AUTHORS")
outputs.dir("$projectDir/CMakeFiles")
if (0) {
dependsOn ':lz4:assemble'
dependsOn ':snappy:assemble'
dependsOn ':zlib:assemble'
} else {
dependsOn ':libs:lz4:assemble'
dependsOn ':libs:snappy:assemble'
dependsOn ':libs:zlib:assemble'
}
}
The above task does not execute, gradle says "UP-TO-DATE". But the output directory "$projectDir/CMakeFiles" does not exist. I have intentionally left all the debug cruft in the task in case that inspires/contributes to an answer.Vampire
12/25/2024, 12:40 AMAUTHORS
file. So as long as that does not change and the outputs since the last successful execution did not change, the task is up to date.Matthew Von-Maszewski
12/25/2024, 1:37 PMVampire
12/25/2024, 2:00 PMMatthew Von-Maszewski
12/25/2024, 3:34 PMVampire
12/25/2024, 5:12 PM