Closed JackBoosY closed 2 years ago
IMO this PR is completely invalid.
However, the original problem is valid: all uses of try_run
or check_cxx_source_runs
are a barrier for cross builds.
https://github.com/openscenegraph/OpenSceneGraph/search?q=CHECK_CXX_SOURCE_RUNS
When I cross-build osg for
arm64-windows
withx64-windows
, I got the following cmake error message:According to the cmake code generated by cmake automaticly, add the same code before call
CHECK_CXX_SOURCE_RUNS
.cmake version: 3.24 osg version: 3.6.5 OS version: Windows 10 compiler version: Visual Studio 2017