Skip to content

Commit

Permalink
Fftw fix final (#5)
Browse files Browse the repository at this point in the history
* hopefully final fix for fftw file issue

* updated package version
  • Loading branch information
sfarrens authored Sep 8, 2020
1 parent 0bcffa9 commit 8538003
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions bigmac/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(bigmac)
# Set BigMac Version
set(BIGMAC_MAJOR_VERSION 0)
set(BIGMAC_MINOR_VERSION 0)
set(BIGMAC_PATCH_VERSION 2)
set(BIGMAC_PATCH_VERSION 3)
set(BIGMAC_VERSION
${BIGMAC_MAJOR_VERSION}.${BIGMAC_MINOR_VERSION}.${BIGMAC_PATCH_VERSION})

Expand Down Expand Up @@ -34,9 +34,12 @@ 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
set(fftw_depends "/usr/local/lib/cmake/fftw3/FFTW3LibraryDepends.cmake")
if(NOT EXISTS ${fftw_depends})
file(WRITE ${fftw_depends})
message(STATUS "Writing file ${fftw_depends}")
# Add FFTW file need for CMake find_package
set(cmake_fftw_path "/usr/local/lib/cmake/fftw3/")
set(fftw_depends_name "FFTW3LibraryDepends.cmake")
set(fftw_depends_file "${CMAKE_CURRENT_BINARY_DIR}/${fftw_depends_name}")
if(NOT EXISTS ${cmake_fftw_path}${fftw_depends_name})
file(WRITE ${fftw_depends_file})
install(FILES ${fftw_depends_file} DESTINATION ${cmake_fftw_path})
message(STATUS "Writing ${fftw_depends_name}")
endif()

0 comments on commit 8538003

Please sign in to comment.