diff options
author | Rechi <Rechi@users.noreply.github.com> | 2017-02-17 19:27:34 +0100 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2017-02-17 19:27:34 +0100 |
commit | 8f9343ffa3f71dd3078deeb1240aa267a73ac380 (patch) | |
tree | ff29d22937e9fbb8825f880adac6ad2937611ce7 /cmake/modules/FindJsonSchemaBuilder.cmake | |
parent | edcbd4a02556246c1da2e87f64cbad251f1a9fd6 (diff) |
[cmake][windows] use precompiled JsonSchemaBuilder if cross compiling
Diffstat (limited to 'cmake/modules/FindJsonSchemaBuilder.cmake')
-rw-r--r-- | cmake/modules/FindJsonSchemaBuilder.cmake | 9 |
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) |