Skip to content

Commit

Permalink
OPTIONAL: Add Optional backport to build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamievlin committed Dec 31, 2023
1 parent 89c4a79 commit 9d9c66a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ endif()
build_files_to_src(CORE_BUILD_FILES CORE_SOURCE_FILES)
include(cmake-scripts/external-libs.cmake)
include(cmake-scripts/thirdparty-impl.cmake)
include(cmake-scripts/backport-libs.cmake)

# PRC
add_subdirectory(prc/)
Expand Down
6 changes: 6 additions & 0 deletions backports/optional/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.26)

project(OptionalBackport)

add_library(OptionalBackport INTERFACE)
target_include_directories(OptionalBackport INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include/)
3 changes: 3 additions & 0 deletions cmake-scripts/backport-libs.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backports/optional)

list(APPEND ASY_STATIC_LIBARIES OptionalBackport)

0 comments on commit 9d9c66a

Please sign in to comment.