set cmake_rc_compiler on mingw
@@ -105,6 +105,7 @@ function _get_configs_for_mingw(package, configs)
envs.CMAKE_AR = _translate_windows_bin_path(package:build_getenv("ar"))
envs.CMAKE_LINKER = _translate_windows_bin_path(package:build_getenv("ld"))
envs.CMAKE_RANLIB = _translate_windows_bin_path(package:build_getenv("ranlib"))
+ envs.CMAKE_RC_COMPILER = _translate_windows_bin_path(package:build_getenv("mrc"))
else
envs.CMAKE_C_COMPILER = package:build_getenv("cc")
envs.CMAKE_CXX_COMPILER = package:build_getenv("cxx")
@@ -112,6 +113,7 @@ function _get_configs_for_mingw(package, configs)
envs.CMAKE_AR = package:build_getenv("ar")
envs.CMAKE_LINKER = package:build_getenv("ld")
envs.CMAKE_RANLIB = package:build_getenv("ranlib")
+ envs.CMAKE_RC_COMPILER = package:build_getenv("mrc")
end
envs.CMAKE_C_FLAGS = table.concat(cflags, ' ')
envs.CMAKE_CXX_FLAGS = table.concat(cxxflags, ' ')
