From 312250a01fe27a45419e799a23fd7892d40ee257 Mon Sep 17 00:00:00 2001 From: Neeraj Deshpande Date: Tue, 27 Oct 2020 15:48:51 +0530 Subject: [PATCH] Modified to replace CREATE_LINK with Thunder function CreateLink. --- definitions/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/definitions/CMakeLists.txt b/definitions/CMakeLists.txt index b2d4e95e..9c7ee91d 100644 --- a/definitions/CMakeLists.txt +++ b/definitions/CMakeLists.txt @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 3.14.0) +cmake_minimum_required(VERSION 3.7.2) project(Definitions) @@ -33,8 +33,11 @@ JsonGenerator(CODE INPUT ${INTERFACE_FILE} OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/g file(GLOB JSON_ENUM_SOURCES "${CMAKE_CURRENT_BINARY_DIR}/generated/JsonEnum*.cpp") file(GLOB JSON_LINK_HEADERS "${CMAKE_CURRENT_BINARY_DIR}/generated/J*.h") -file(CREATE_LINK "../Module.h" "${CMAKE_CURRENT_BINARY_DIR}/generated/Module.h" SYMBOLIC) +include(CreateLink) +CreateLink(LINK "${CMAKE_CURRENT_BINARY_DIR}/generated/Module.h" TARGET "../Module.h") list(APPEND JSON_LINK_HEADERS "${CMAKE_CURRENT_BINARY_DIR}/generated/Module.h") +CreateLink(LINK "${CMAKE_CURRENT_BINARY_DIR}/generated/Ids.h" TARGET "../Ids.h") +list(APPEND JSON_LINK_HEADERS "${CMAKE_CURRENT_BINARY_DIR}/generated/Ids.h") add_library(${Target} SHARED Definitions.cpp