Attempt to fix portaudio building while cross-compiling.
authorhobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 10 May 2018 21:26:08 +0000 (21:26 +0000)
committerhobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 10 May 2018 21:26:08 +0000 (21:26 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3594 01035d8c-6547-0410-b346-abe4f91aad63

freedv-dev/cmake/BuildPortaudio.cmake

index cc33d061bce79381ceb52872c52ee31b887b1ff2..7acd8a03d97039b4a18b5860033dc54ac1aab743 100644 (file)
@@ -14,7 +14,8 @@ endif()
 # Make sure that configure knows what system we're using when cross-compiling.
 if(MINGW AND CMAKE_CROSSCOMPILING)
     include(cmake/MinGW.cmake)
-    set(CONFIGURE_COMMAND ./configure --build=${HOST} --host=${HOST} --target=${HOST} --enable-cxx --without-jack --disable-shared --prefix=${CMAKE_BINARY_DIR}/external/dist)
+    set(CONFIGURE_COMMAND ./configure --host=${HOST} --target=${HOST} --enable-cxx --without-jack --disable-shared --prefix=${CMAKE_BINARY_DIR}/external/dist)
+    #set(CONFIGURE_COMMAND ./configure --build=${CMAKE_HOST_SYSTEM} --host=${HOST} --target=${HOST} --enable-cxx --without-jack --disable-shared --prefix=${CMAKE_BINARY_DIR}/external/dist)
 else()
     set(CONFIGURE_COMMAND ./configure --enable-cxx --without-jack --disable-shared --prefix=${CMAKE_BINARY_DIR}/external/dist)
 endif()