Skip to content

Commit

Permalink
Merge pull request #7 from rdkcentral/development/cmake-symlink
Browse files Browse the repository at this point in the history
Modified to replace CREATE_LINK with Thunder function CreateLink.
  • Loading branch information
pwielders authored Oct 27, 2020
2 parents b21e89f + 312250a commit c9b0017
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 c9b0017

Please sign in to comment.