We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4c1ca1 commit cd4841aCopy full SHA for cd4841a
CMakeLists.txt
@@ -137,8 +137,16 @@ file(GLOB_RECURSE SBE_SOURCES
137
"${CMAKE_CURRENT_SOURCE_DIR}/sbe-tool/src/main/java/*.java"
138
)
139
140
+if (NOT DEFINED GRADLE_WRAPPER)
141
+ if (MSVC)
142
+ set(GRADLE_WRAPPER "gradlew.bat" CACHE INTERNAL "Location of the Gradle wrapper script")
143
+ else ()
144
+ set(GRADLE_WRAPPER "./gradlew" CACHE INTERNAL "Location of the Gradle wrapper script")
145
+ endif ()
146
+endif ()
147
+
148
add_custom_command(OUTPUT ${SBE_JAR}
- COMMAND ./gradlew assemble -x javadoc --console=plain
149
+ COMMAND ${GRADLE_WRAPPER} assemble -x javadoc --console=plain
150
DEPENDS ${SBE_SOURCES}
151
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
152
COMMENT "Generating SBE jar"
0 commit comments