diff --git a/bigmac/BigMacConfig.cmake.in b/bigmac/BigMacConfig.cmake.in index 1484c89..a155887 100644 --- a/bigmac/BigMacConfig.cmake.in +++ b/bigmac/BigMacConfig.cmake.in @@ -30,15 +30,15 @@ set(OUTDATED "You are not using the latest version of") set(SUGGEST "You can continue your build, but if you experience problems \ you may want to consider updating.") -if(NOT BigMac_MACOS STREQUAL @MACOS_LATEST@) +if(BigMac_MACOS VERSION_LESS @MACOS_LATEST@) message(WARNING "${OUTDATED} macOS (@MACOS_LATEST@). ${SUGGEST}") endif() -if(NOT BigMac_DARWIN STREQUAL @DARWIN_LATEST@) +if(BigMac_DARWIN VERSION_LESS @DARWIN_LATEST@) message(WARNING "${OUTDATED} Darwin (@DARWIN_LATEST@). ${SUGGEST}") endif() -if(NOT BigMac_XCODE STREQUAL @XCODE_LATEST@) +if(BigMac_XCODE VERSION_LESS @XCODE_LATEST@) message(WARNING "${OUTDATED} XCode (@XCODE_LATEST@). ${SUGGEST}") endif() diff --git a/bigmac/CMakeLists.txt b/bigmac/CMakeLists.txt index e3955d6..d238f90 100644 --- a/bigmac/CMakeLists.txt +++ b/bigmac/CMakeLists.txt @@ -11,7 +11,7 @@ set(BIGMAC_VERSION # Set latest version of macOS system set(MACOS_LATEST "10.15.6") set(DARWIN_LATEST "19.6.0") -set(XCODE_LATEST "11.6") +set(XCODE_LATEST "11.7") export(PACKAGE bigmac) @@ -33,3 +33,6 @@ list(TRANSFORM BIGMAC_TARGETS PREPEND "${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME} # Install CMake configuration files install(FILES ${BIGMAC_TARGETS} DESTINATION ${INSTALL_CMAKE_DIR}) + +# Create dummy file so that CMake can find FFTW +file(TOUCH "/usr/local/lib/cmake/fftw3/FFTW3LibraryDepends.cmake")