aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-06-13 16:36:30 +1000
committerfuzzard <fuzzard@kodi.tv>2023-06-13 16:36:30 +1000
commitf2eb5b2e6972d7bcfe9e19eecfb8a0b4f469b430 (patch)
tree77032530cf707594f838e05cdfe6acb329348dba
parentae1c4825d22fefdfa4205fb8437ade0cef438284 (diff)
[cmake][buildtools] Set FlatC build to use tools/depends/native VERSION file
-rw-r--r--cmake/modules/buildtools/FindFlatC.cmake1
-rw-r--r--cmake/scripts/common/ModuleHelpers.cmake1
2 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/buildtools/FindFlatC.cmake b/cmake/modules/buildtools/FindFlatC.cmake
index bca17e8a05..f28477e7ff 100644
--- a/cmake/modules/buildtools/FindFlatC.cmake
+++ b/cmake/modules/buildtools/FindFlatC.cmake
@@ -28,6 +28,7 @@ if(NOT TARGET flatbuffers::flatc)
endif()
set(MODULE_LC flatbuffers)
+ set(LIB_TYPE native)
# Duplicate URL may exist from FindFlatbuffers.cmake
# unset otherwise it thinks we are providing a local file location and incorrect concatenation happens
unset(FLATBUFFERS_URL)
diff --git a/cmake/scripts/common/ModuleHelpers.cmake b/cmake/scripts/common/ModuleHelpers.cmake
index 97a3901e0c..7365c914ee 100644
--- a/cmake/scripts/common/ModuleHelpers.cmake
+++ b/cmake/scripts/common/ModuleHelpers.cmake
@@ -158,6 +158,7 @@ macro(SETUP_BUILD_VARS)
message(STATUS "PROJECTSOURCE: ${PROJECTSOURCE}")
message(STATUS "${MODULE}_URL: ${${MODULE}_URL}")
endif()
+ unset(LIB_TYPE)
endmacro()
macro(CLEAR_BUILD_VARS)