Run dew with same compiler as host project
This commit is contained in:
parent
e55b6b43e3
commit
a6965d5f14
|
@ -41,7 +41,8 @@ function(integrate_dew)
|
||||||
message(FATAL_ERROR "Failed to install dew with pip: result: ${install_dew_result}.")
|
message(FATAL_ERROR "Failed to install dew with pip: result: ${install_dew_result}.")
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "Building dew dependencies")
|
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}"
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||||
RESULT_VARIABLE dew_res)
|
RESULT_VARIABLE dew_res)
|
||||||
if(NOT dew_res EQUAL 0)
|
if(NOT dew_res EQUAL 0)
|
||||||
|
|
Loading…
Reference in New Issue