Enforce C compiler as given by CMake

This commit is contained in:
Guilhem Lavaux 2014-04-10 09:12:01 +02:00
parent e3ff41e30a
commit b80734bf07

View File

@ -37,7 +37,7 @@ if (ENABLE_SHARP)
ExternalProject_Add(sharp
SOURCE_DIR ${SHARP_SOURCE}
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ${SHARP_SOURCE}/configure --prefix=${DEP_BUILD}
CONFIGURE_COMMAND ${SHARP_SOURCE}/configure "CC=${CMAKE_C_COMPILER}" "CXX=${CMAKE_CXX_COMPILER}" --prefix=${DEP_BUILD}
BUILD_COMMAND ${CMAKE_MAKE_PROGRAM}
INSTALL_COMMAND echo "No install"
)