From a6965d5f14e389b5d16770f280c8a0bca2b81772 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 20 Nov 2019 05:53:51 +0000 Subject: [PATCH] Run dew with same compiler as host project --- dew.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dew.cmake b/dew.cmake index 20d66a4e..c57ae41d 100644 --- a/dew.cmake +++ b/dew.cmake @@ -41,7 +41,8 @@ function(integrate_dew) message(FATAL_ERROR "Failed to install dew with pip: result: ${install_dew_result}.") endif() message(STATUS "Building dew dependencies") - execute_process(COMMAND "${Python3_EXECUTABLE}" -m dew update --build-type ${dew_cmake_prefix_suffix} + execute_process(COMMAND "${Python3_EXECUTABLE}" -m dew update --CC "${CMAKE_C_COMPILER}" + --CXX "${CMAKE_CXX_COMPILER}" --build-type ${dew_cmake_prefix_suffix} WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" RESULT_VARIABLE dew_res) if(NOT dew_res EQUAL 0)