Skip to content

Commit 857a8d6

Browse files
committed
cmake: Set OS version when configuring protobuf build
1 parent fd7ca24 commit 857a8d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cdk/cmake/DepFindProtobuf.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ endif()
9898
set(set_system_name)
9999
if(CMAKE_SYSTEM_NAME)
100100
set(set_system_name -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME})
101+
if(CMAKE_SYSTEM_VERSION)
102+
list(APPEND set_system_name -DCMAKE_SYSTEM_VERSION=${CMAKE_SYSTEM_VERSION})
103+
endif()
101104
endif()
102105

103106
set(set_system_processor)
@@ -107,7 +110,7 @@ endif()
107110

108111
if(NOT EXISTS "${PB_BINARY_DIR}/exports.cmake")
109112

110-
message("==== Configuring Protobuf build using cmake generator: ${CMAKE_GENERATOR} ${set_arch} ${set_toolset}")
113+
message("==== Configuring Protobuf build using cmake generator: ${CMAKE_GENERATOR} ${set_arch} ${set_toolset} ${set_system_name}")
111114

112115
file(REMOVE "${PB_BINARY_DIR}/CMakeCache.txt")
113116
file(MAKE_DIRECTORY "${PB_BINARY_DIR}")

0 commit comments

Comments
 (0)