diff --git a/cmake/cross-compile.cmake b/cmake/cross-compile.cmake index c255833..73bdcab 100644 --- a/cmake/cross-compile.cmake +++ b/cmake/cross-compile.cmake @@ -11,6 +11,7 @@ if(CROSSCOMPILE) # Set the CMake system name to Windows for cross-compilation set(CMAKE_SYSTEM_NAME Windows) + set(CMAKE_SYSTEM_VERSION 10.0.26100) # adjust the default behavior of the FIND_XXX() commands: # search programs in the host environment diff --git a/cmake/luajit.cmake b/cmake/luajit.cmake index ad9b229..ff00bae 100644 --- a/cmake/luajit.cmake +++ b/cmake/luajit.cmake @@ -1,11 +1,7 @@ include(FetchContent) -message("LuaJIT") +message(STATUS "Setting up LuaJIT") -# For some reason putting this into crosscompile.cmake doesn't work. -if(CROSSCOMPILE) - set(CMAKE_SYSTEM_VERSION 10.0.26100) -endif() set(LUAJIT_BUILD_TOOL OFF) set(LUAJIT_FORCE_UTF8_FOPEN ON)