enable_cross_compiler()
and CMAKE_TOOLCHAIN_FILE
#188Dockerfile.mingw
so setup-cpp can install the cross-compiler (MinGW) #233Taskfile
in aminya/cpp_vcpkg_project#15The best you can do is add this to your cmake file:
# opt-in cross-compiling
option(ENABLE_CROSS_COMPILING "Detect cross compiler and setup toolchain" OFF)
if(ENABLE_CROSS_COMPILING)
enable_cross_compiler()
endif()
run_vcpkg() # run_vcpkg AFTER enable_cross_compiler, when using vcpkg
and run cmake with these additional arguments:
-DENABLE_CROSS_COMPILING:BOOL=ON -DDEFAULT_TRIPLET=x64-mingw-dynamic
See Taskfile and docker examples
enable_cross_compiler()
and run_vcpkg()
can help you set up Community triplets easierOriginally posted by @abeimler in #171 (comment)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too