Skip to content

Commit c2d3243

Browse files
aminyaDomkeykong
andcommitted
fix: pass CC and CXX to conan
Co-Authored-By: Domkeykong <28488361+Domkeykong@users.noreply.github.com>
1 parent 340f9d9 commit c2d3243

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Conan.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ macro(run_conan)
4444
conan_cmake_install(
4545
PATH_OR_REFERENCE ${CMAKE_SOURCE_DIR}
4646
BUILD missing
47-
# Pass compile-time configured options into conan
47+
# Pass compile-time configured options into conan
4848
OPTIONS ${ProjectOptions_CONAN_OPTIONS}
49+
# Pass CMake compilers to Conan
50+
ENV "CC=${CMAKE_C_COMPILER}" "CXX=${CMAKE_CXX_COMPILER}"
4951
SETTINGS ${settings})
5052
endforeach()
5153

0 commit comments

Comments
 (0)