Commit 3e9b653e authored by Rashad Kanavath's avatar Rashad Kanavath

SuperBuild: pass C & CXX compiler to ExternalProject call

parent c6d21d79
......@@ -150,8 +150,12 @@ if(UNIX)
endif()
endif()
set(SB_CMAKE_ARGS)
list(APPEND SB_CMAKE_ARGS "-G${CMAKE_GENERATOR}")
list(APPEND SB_CMAKE_ARGS "-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}")
list(APPEND SB_CMAKE_ARGS "-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}")
set(SB_CMAKE_COMMAND ${CMAKE_COMMAND} ${SB_CMAKE_ARGS})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment