3 Use the cross-compiler and not the host version.
6 https://github.com/notspiff/visualization.goom/pull/4
8 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10 diff -uNr visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305.org/CMakeLists.txt visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305/CMakeLists.txt
11 --- visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305.org/CMakeLists.txt 2014-10-31 11:34:21.000000000 +0100
12 +++ visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305/CMakeLists.txt 2015-07-19 19:49:43.340054342 +0200
15 ${PROJECT_SOURCE_DIR}/lib/goom2k4-0/src)
17 +get_filename_component( COMPILER_FILENAME "${CMAKE_C_COMPILER}" NAME )
18 +string( REGEX REPLACE "-[^-]+$" ""
19 + TOOLCHAIN_NAME "${COMPILER_FILENAME}" )
21 include(ExternalProject)
22 set(update_command "")
23 if(BOOTSTRAP_IN_TREE OR NOT DEFINED BOOTSTRAP_IN_TREE)
26 externalproject_add(libgoom SOURCE_DIR ${PROJECT_SOURCE_DIR}/lib/goom2k4-0
28 - CONFIGURE_COMMAND ${PROJECT_SOURCE_DIR}/lib/goom2k4-0/configure --disable-shared --enable-static --with-pic --prefix=<INSTALL_DIR>
29 + CONFIGURE_COMMAND ${PROJECT_SOURCE_DIR}/lib/goom2k4-0/configure --disable-shared --enable-static --with-pic --prefix=<INSTALL_DIR> --host=${TOOLCHAIN_NAME}