diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-11-25 17:06:51 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-11-26 09:01:32 -0800 |
| commit | 97101d4bd500d3784f3cd9524dbdaa1ef45978d3 (patch) | |
| tree | 5fc46905df4572663062a66d9e2742d12016e4b9 | |
| parent | 7da4a498b3bf6686c1b08abafb59ab2e14cee681 (diff) | |
| download | vcpkg-97101d4bd500d3784f3cd9524dbdaa1ef45978d3.tar.gz vcpkg-97101d4bd500d3784f3cd9524dbdaa1ef45978d3.zip | |
[fftw3] Detect stale sources
| -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"
|
