diff options
| -rw-r--r-- | ports/fftw3/portfile.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ports/fftw3/portfile.cmake b/ports/fftw3/portfile.cmake index 973cf7dbe..317046635 100644 --- a/ports/fftw3/portfile.cmake +++ b/ports/fftw3/portfile.cmake @@ -1,5 +1,14 @@ include(vcpkg_common_functions)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/fftw-3.3.7)
+
+# This can be removed in the next source code update
+if(EXISTS "${SOURCE_PATH}/CMakeLists.txt")
+ file(READ "${SOURCE_PATH}/CMakeLists.txt" _contents)
+ if("${_contents}" MATCHES "-D_OPENMP -DLIBFFTWF33_EXPORTS /openmp /bigobj")
+ file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/src)
+ endif()
+endif()
+
vcpkg_download_distfile(ARCHIVE
URLS "http://www.fftw.org/fftw-3.3.7.tar.gz"
FILENAME "fftw-3.3.7.tar.gz"
|
