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})
5959 )
6060endforeach ()
6161
62- if (WIN32 )
62+ if (WIN32 AND NOT CMAKE_CROSSCOMPILING )
6363 set (MV_COMMAND
6464 powershell -Command
6565 "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(
4949ExternalProject_Get_Property(flatbuffers_external_project INSTALL_DIR)
5050add_executable (flatc IMPORTED GLOBAL )
5151add_dependencies (flatc flatbuffers_external_project)
52- if (WIN32 )
52+ if (WIN32 AND NOT CMAKE_CROSSCOMPILING )
5353 # flatbuffers does not use CMAKE_BUILD_TYPE. Internally, the build forces Release
5454 # config, but from CMake's perspective the build type is always Debug.
5555 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)
101101ExternalProject_Get_Property(flatcc_external_project INSTALL_DIR)
102102add_executable (flatcc_cli IMPORTED GLOBAL )
103103add_dependencies (flatcc_cli flatcc_external_project)
104- if (WIN32 )
104+ if (WIN32 AND NOT CMAKE_CROSSCOMPILING )
105105 set_target_properties (flatcc_cli PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR} /bin/flatcc.exe)
106106else ()
107107 set_target_properties (flatcc_cli PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR} /bin/flatcc)
You can’t perform that action at this time.
0 commit comments