Skip to content

Commit 94b69b0

Browse files
hartworkvitalybuka
authored andcommitted
Resolve needless check for CMake <3.10.0
.. since the top CMakeLists.txt requires CMake >=3.24 via line 15 "cmake_minimum_required(VERSION 3.24)". Signed-off-by: Sebastian Pipping <sebastian@pipping.org>
1 parent 9871342 commit 94b69b0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmake/external/protobuf.cmake

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,7 @@ endforeach(lib)
135135
set(PROTOBUF_PROTOC_EXECUTABLE ${PROTOBUF_INSTALL_DIR}/bin/protoc)
136136
list(APPEND PROTOBUF_BUILD_BYPRODUCTS ${PROTOBUF_PROTOC_EXECUTABLE})
137137

138-
if(${CMAKE_VERSION} VERSION_LESS "3.10.0")
139-
set(PROTOBUF_PROTOC_TARGET protoc)
140-
else()
141-
set(PROTOBUF_PROTOC_TARGET protobuf::protoc)
142-
endif()
138+
set(PROTOBUF_PROTOC_TARGET protobuf::protoc)
143139

144140
if(NOT TARGET ${PROTOBUF_PROTOC_TARGET})
145141
add_executable(${PROTOBUF_PROTOC_TARGET} IMPORTED)

0 commit comments

Comments
 (0)