Skip to content

Commit

Permalink
[C++] Remove redundant call to execute_process.
Browse files Browse the repository at this point in the history
We do not need to build sbe-jar at configure time.
  • Loading branch information
denizevrenci committed Feb 1, 2019
1 parent 98d435a commit 2ea459b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions CMakeLists.txt
Expand Up @@ -104,15 +104,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/binaries")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")

set(SBE_JAR "${CMAKE_CURRENT_SOURCE_DIR}/sbe-all/build/libs/sbe-all-${SBE_VERSION_TXT}.jar")
if(EXISTS "${SBE_JAR}")
message("latest SBE jar found: ${SBE_JAR}")
else()
message("Generating SBE jar")
execute_process(
COMMAND ./gradlew build -x test -x check -x javadoc :sbe-all:build
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
endif()

file(GLOB_RECURSE SBE_SOURCES
"${CMAKE_CURRENT_SOURCE_DIR}/sbe-tool/src/main/java/*.java"
Expand Down

0 comments on commit 2ea459b

Please sign in to comment.