Skip to content

Commit

Permalink
Modified to replace CREATE_LINK with Thunder function CreateLink.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Deshpande committed Oct 27, 2020
1 parent b21e89f commit 312250a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions definitions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit 312250a

Please sign in to comment.