aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/FindJsonSchemaBuilder.cmake
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2017-02-17 19:27:34 +0100
committerRechi <Rechi@users.noreply.github.com>2017-02-17 19:27:34 +0100
commit8f9343ffa3f71dd3078deeb1240aa267a73ac380 (patch)
treeff29d22937e9fbb8825f880adac6ad2937611ce7 /cmake/modules/FindJsonSchemaBuilder.cmake
parentedcbd4a02556246c1da2e87f64cbad251f1a9fd6 (diff)
[cmake][windows] use precompiled JsonSchemaBuilder if cross compiling
Diffstat (limited to 'cmake/modules/FindJsonSchemaBuilder.cmake')
-rw-r--r--cmake/modules/FindJsonSchemaBuilder.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/modules/FindJsonSchemaBuilder.cmake b/cmake/modules/FindJsonSchemaBuilder.cmake
index cdaa2d5d7e..9a31dd5f12 100644
--- a/cmake/modules/FindJsonSchemaBuilder.cmake
+++ b/cmake/modules/FindJsonSchemaBuilder.cmake
@@ -10,8 +10,13 @@
if(NOT TARGET JsonSchemaBuilder::JsonSchemaBuilder)
if(KODI_DEPENDSBUILD OR CMAKE_CROSSCOMPILING)
add_executable(JsonSchemaBuilder::JsonSchemaBuilder IMPORTED GLOBAL)
- set_target_properties(JsonSchemaBuilder::JsonSchemaBuilder PROPERTIES
- IMPORTED_LOCATION "${NATIVEPREFIX}/bin/JsonSchemaBuilder")
+ if(CORE_SYSTEM_NAME STREQUAL windows OR CORE_SYSTEM_NAME STREQUAL windowsstore)
+ set_target_properties(JsonSchemaBuilder::JsonSchemaBuilder PROPERTIES
+ IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/project/BuildDependencies/bin/json-rpc/JsonSchemaBuilder")
+ else()
+ set_target_properties(JsonSchemaBuilder::JsonSchemaBuilder PROPERTIES
+ IMPORTED_LOCATION "${NATIVEPREFIX}/bin/JsonSchemaBuilder")
+ endif()
set_target_properties(JsonSchemaBuilder::JsonSchemaBuilder PROPERTIES FOLDER Tools)
else()
add_subdirectory(${CMAKE_SOURCE_DIR}/tools/depends/native/JsonSchemaBuilder build/jsonschemabuilder)