Skip to content
Snippets Groups Projects
Commit 7b106f3f authored by Attila Krasznahorkay's avatar Attila Krasznahorkay Committed by Graeme Stewart
Browse files

Specifying an MD5 hash for the source file in the CMake build (AtlasFFTW-00-00-04)

Former-commit-id: 2d81fa6105efc4455143e1e83811484191ea2cb9
parent 7088155a
No related branches found
No related tags found
No related merge requests found
# $Id: CMakeLists.txt 769864 2016-08-24 13:16:38Z krasznaa $
#
# Package building the FFTW library as part of the offline software build.
#
# Set the name of the package:
atlas_subdir( AtlasFFTW )
# In release recompilation mode stop here:
if( ATLAS_RELEASE_MODE )
return()
endif()
# Decide whether to request debug symbols from the build:
set( _fftwExtraConfig )
if( "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" )
set( _fftwExtraConfig --enable-debug )
endif()
# Set up the build of FFTW for the build area:
ExternalProject_Add( FFTW
PREFIX ${CMAKE_BINARY_DIR}
URL ${CMAKE_CURRENT_SOURCE_DIR}/src/fftw-3.3.3.tar.gz
URL_MD5 74b2a000d80646d3c0210efbeb9836ba
INSTALL_DIR ${CMAKE_BINARY_DIR}/${ATLAS_PLATFORM}
CONFIGURE_COMMAND ./configure --prefix=${CMAKE_CURRENT_BINARY_DIR}/build
--enable-shared --enable-float ${_fftwExtraConfig}
BUILD_IN_SOURCE 1
BUILD_COMMAND make
COMMAND make install
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_BINARY_DIR}/build/ <INSTALL_DIR>
)
add_dependencies( Package_AtlasFFTW FFTW )
# Set up its installation:
install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build/
DESTINATION . USE_SOURCE_PERMISSIONS OPTIONAL )
from PyCmt.pkgbuild.cmmi import *
from os import system
pkg_name= "fftw"
pkg_ver = "3.3.3"
def configure(self):
sh = self.sh
msg = self.msg
env = self.env
pkg_install_dir = self['pkg_install_dir']
msg.debug('configure...')
sh.chdir("%(pkg_build_dir)s/%(pkg_name)s-%(pkg_ver)s" % env)
os.system('pwd')
cmd = [
'./configure',
'--prefix=%s'%pkg_install_dir,
'--enable-shared',
'--enable-float',
]
self.run(cmd)
package AtlasFFTW
use AtlasPolicy AtlasPolicy-*
use PyCmt PyCmt-* Tools -no_auto_imports
include_dirs $(AtlasFFTW_cmtpath)/InstallArea/$(CMTCONFIG)/include
macro AtlasFFTW_linkopts " -lfftw3f"
private
apply_pattern make_pkgbuild \
name=fftw \
file=pkgbuild_fftw.py
end_private
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment