@@ -80,8 +80,17 @@ else ()
80
80
endif ()
81
81
endif ()
82
82
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
+
83
92
# 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 )
85
94
86
95
# TODO: redefine below as option with proper defaults per platform
87
96
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
@@ -113,7 +122,6 @@ else ()
113
122
114
123
message (WARNING "Anything below this warning is a TODO not yet implemented." )
115
124
116
- message (STATUS "Building core library tests." )
117
125
message (STATUS "Add support for static analysis." )
118
126
message (STATUS "Building client libraries." )
119
127
message (STATUS "Setting up tests." )
@@ -122,4 +130,5 @@ else ()
122
130
message (STATUS "Setting up docs." )
123
131
message (STATUS "Add support support for SDK flags." )
124
132
message (STATUS "Add previously available options." )
133
+ message (STATUS "Update scripts in the tools directory." )
125
134
endif ()
0 commit comments