Skip to content

Commit dd82801

Browse files
committed
Adding message about REGENERATE_CLIENT removal
1 parent b952437 commit dd82801

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

CMakeLists.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,17 @@ else ()
8080
endif ()
8181
endif ()
8282

83+
# Options no longer supported FATAL with message
84+
if (REGENERATE_CLIENTS)
85+
string(CONCAT CONFIG_FAIL_MSG
86+
"The REGENERATE_CLIENTS option previously available is removed from new build scripts. "
87+
"To regenerate service client code from models use the tools/script/generate_sdks.py script. "
88+
"Alternatively, -DLEGACY_BUILD=ON can be passed to cmake to use the old build scripts until 1.11.")
89+
message(FATAL_ERROR "${CONFIG_FAIL_MSG}")
90+
endif ()
91+
8392
# Options definition
84-
option(BUILD_TESTING "If enabled, the SDK will include tests in the build" OFF)
93+
option(BUILD_TESTING "If enabled, the SDK will include tests in the build." OFF)
8594

8695
# TODO: redefine below as option with proper defaults per platform
8796
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
@@ -113,7 +122,6 @@ else ()
113122

114123
message(WARNING "Anything below this warning is a TODO not yet implemented.")
115124

116-
message(STATUS "Building core library tests.")
117125
message(STATUS "Add support for static analysis.")
118126
message(STATUS "Building client libraries.")
119127
message(STATUS "Setting up tests.")
@@ -122,4 +130,5 @@ else ()
122130
message(STATUS "Setting up docs.")
123131
message(STATUS "Add support support for SDK flags.")
124132
message(STATUS "Add previously available options.")
133+
message(STATUS "Update scripts in the tools directory.")
125134
endif ()

0 commit comments

Comments
 (0)