Skip to content
Snippets Groups Projects
Commit 221ca78a authored by Franck Pérignon's avatar Franck Pérignon
Browse files

cmake ok for macos without fftw

parent 152f3152
No related branches found
No related tags found
No related merge requests found
Showing
with 7 additions and 1 deletion
...@@ -34,6 +34,7 @@ option(WITH_PPM "link Parmes with PPM library (core component). Default = off." ...@@ -34,6 +34,7 @@ option(WITH_PPM "link Parmes with PPM library (core component). Default = off."
option(WITH_PPMNumerics "link Parmes with PPM-numerics. Default = off" OFF) option(WITH_PPMNumerics "link Parmes with PPM-numerics. Default = off" OFF)
option(WITH_TESTS "Enable testing. Default = off" OFF) option(WITH_TESTS "Enable testing. Default = off" OFF)
option(BUILD_SHARED_LIBS "Enable dynamic library build, default = ON" ON) option(BUILD_SHARED_LIBS "Enable dynamic library build, default = ON" ON)
option(WITH_FFTW "Link with fftw library (required for some Parmes solvers), default = ON" ON)
# cmake project name # cmake project name
set(PROJECT_NAME parmepy) set(PROJECT_NAME parmepy)
...@@ -83,6 +84,7 @@ set(CMAKE_INSTALL_PREFIX ${${PROJECT_NAME}_INSTALL_DIR}) ...@@ -83,6 +84,7 @@ set(CMAKE_INSTALL_PREFIX ${${PROJECT_NAME}_INSTALL_DIR})
# The file __init__.py will be generated from __init__.py.in. # The file __init__.py will be generated from __init__.py.in.
if(EXISTS ${CMAKE_SOURCE_DIR}/parmepy/__init__.py.in) if(EXISTS ${CMAKE_SOURCE_DIR}/parmepy/__init__.py.in)
message(STATUS "Generate __init__.py file ...") message(STATUS "Generate __init__.py file ...")
file(REMOVE ${CMAKE_SOURCE_DIR}/parmepy/__init__.py)
configure_file(parmepy/__init__.py.in ${CMAKE_SOURCE_DIR}/parmepy/__init__.py) configure_file(parmepy/__init__.py.in ${CMAKE_SOURCE_DIR}/parmepy/__init__.py)
endif() endif()
...@@ -124,6 +126,7 @@ if(VERBOSE_MODE) ...@@ -124,6 +126,7 @@ if(VERBOSE_MODE)
message(STATUS " Sources are in : ${CMAKE_SOURCE_DIR}") message(STATUS " Sources are in : ${CMAKE_SOURCE_DIR}")
message(STATUS " Project uses MPI : ${USE_MPI}") message(STATUS " Project uses MPI : ${USE_MPI}")
message(STATUS " Project uses Scales : ${WITH_SCALES}") message(STATUS " Project uses Scales : ${WITH_SCALES}")
message(STATUS " Project uses FFTW : ${WITH_FFTW}")
message(STATUS " Project uses PPM : ${WITH_PPM}") message(STATUS " Project uses PPM : ${WITH_PPM}")
message(STATUS " Python packages will be installed in ${${PROJECT_NAME}_INSTALL_DIR}") message(STATUS " Python packages will be installed in ${${PROJECT_NAME}_INSTALL_DIR}")
message(STATUS "====================== ======= ======================") message(STATUS "====================== ======= ======================")
......
...@@ -11,7 +11,10 @@ import os ...@@ -11,7 +11,10 @@ import os
import site import site
import mpi4py.MPI as MPI import mpi4py.MPI as MPI
os.environ['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH']+':'+"@CMAKE_INSTALL_PREFIX@" if(os.environ.has_key('LD_LIBRARY_PATH')):
os.environ['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH']+':'+"@CMAKE_INSTALL_PREFIX@"
else:
os.environ['LD_LIBRARY_PATH'] = "@CMAKE_INSTALL_PREFIX@"
rank_world = MPI.COMM_WORLD.Get_rank() rank_world = MPI.COMM_WORLD.Get_rank()
if(rank_world == 0): if(rank_world == 0):
......
File moved
File moved
File moved
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