File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ foreach(fbs_file ${_xnnpack_schema__srcs})
59
59
)
60
60
endforeach ()
61
61
62
- if (WIN32 )
62
+ if (WIN32 AND NOT CMAKE_CROSSCOMPILING )
63
63
set (MV_COMMAND
64
64
powershell -Command
65
65
"Move-Item -Path ${_xnnpack_flatbuffer__outputs} -Destination ${_xnnpack_schema__outputs} "
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ ExternalProject_Add(
49
49
ExternalProject_Get_Property (flatbuffers_external_project INSTALL_DIR )
50
50
add_executable (flatc IMPORTED GLOBAL )
51
51
add_dependencies (flatc flatbuffers_external_project )
52
- if (WIN32 )
52
+ if (WIN32 AND NOT CMAKE_CROSSCOMPILING )
53
53
# flatbuffers does not use CMAKE_BUILD_TYPE. Internally, the build forces Release
54
54
# config, but from CMake's perspective the build type is always Debug.
55
55
set_target_properties (flatc PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR} /bin/flatc.exe )
@@ -101,7 +101,7 @@ file(REMOVE_RECURSE ${PROJECT_SOURCE_DIR}/third-party/flatcc/lib)
101
101
ExternalProject_Get_Property (flatcc_external_project INSTALL_DIR )
102
102
add_executable (flatcc_cli IMPORTED GLOBAL )
103
103
add_dependencies (flatcc_cli flatcc_external_project )
104
- if (WIN32 )
104
+ if (WIN32 AND NOT CMAKE_CROSSCOMPILING )
105
105
set_target_properties (flatcc_cli PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR} /bin/flatcc.exe )
106
106
else ()
107
107
set_target_properties (flatcc_cli PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR} /bin/flatcc )
You can’t perform that action at this time.
0 commit comments