[Paraview] Getting CMake to Use Initial Cache File
Kent Eschenberg
eschenbe at psc.edu
Mon Mar 14 17:52:27 EST 2005
I've had good success getting CMake to use a cache initialization file with
a command like
cmake -DVTK_USE_MPI:BOOL=1
-DCMAKE_CXX_FLAGS:STRING
="-D__USE_STD_IOSTREAM -pthread"
-DCMAKE_C_FLAGS:STRING="-pthread"
-c FixupLemieuxMPI.txt ../src
The "-D" options were added because CMake seems to ignore these values when
they are in the initialization file (a bug report has been filed).
Continuing: I'm now working on compiling with MPI and so added almost a
dozen more settings to the cache initialization file. And CMake ignores
every single one of them!
I've attached this initialization file. Does anyone see what I've done
wrong?
Thanks!
Kent
Pittsburgh Supercomputing Center
-------------- next part --------------
# Commands to set ParaView parameters to work on lemieux.psc.edu
# This file includes parameters for MPI versions
# INTERNAL variables are always put into cache else use the CACHE tag
# FORCE overrides user selections or previous versions in cache
# Usage: cmake -c FixupLemieux.txt <source directory>
# Kent Eschenberg, PSC 20050314 1548
#
# Compilers
#
SET( CMAKE_C_COMPILER "/bin/cc" CACHE STRING "lemieux" FORCE )
SET( CMAKE_C_FLAGS "-pthread" CACHE STRING "lemieux" FORCE )
SET( CMAKE_CXX_COMPILER "/bin/cxx" CACHE STRING "lemieux" FORCE )
SET( CMAKE_CXX_FLAGS "-D__USE_STD_IOSTREAM -pthread" CACHE STRING "lemieux" FORCE )
#
# Numbers
#
SET( SIZEOF_INT64_T 8 INTERNAL "lemieux" FORCE )
SET( SIZEOF_INT_FAST16_T 4 INTERNAL "lemieux" FORCE )
SET( SIZEOF_INT_FAST32_T 4 INTERNAL "lemieux" FORCE )
SET( SIZEOF_INT_FAST64_T 8 INTERNAL "lemieux" FORCE )
SET( SIZEOF_INT_FAST8_T 4 INTERNAL "lemieux" FORCE )
SET( SIZEOF_INT_LEAST16_T 2 INTERNAL "lemieux" FORCE )
SET( SIZEOF_INT_LEAST32_T 4 INTERNAL "lemieux" FORCE )
SET( SIZEOF_INT_LEAST64_T 8 INTERNAL "lemieux" FORCE )
SET( SIZEOF_INT_LEAST8_T 1 INTERNAL "lemieux" FORCE )
#
SET( SIZEOF_UINT64_T 8 INTERNAL "lemieux" FORCE )
SET( SIZEOF_UINT_FAST16_T 4 INTERNAL "lemieux" FORCE )
SET( SIZEOF_UINT_FAST32_T 4 INTERNAL "lemieux" FORCE )
SET( SIZEOF_UINT_FAST64_T 8 INTERNAL "lemieux" FORCE )
SET( SIZEOF_UINT_FAST8_T 4 INTERNAL "lemieux" FORCE )
SET( SIZEOF_UINT_LEAST16_T 2 INTERNAL "lemieux" FORCE )
SET( SIZEOF_UINT_LEAST32_T 4 INTERNAL "lemieux" FORCE )
SET( SIZEOF_UINT_LEAST64_T 8 INTERNAL "lemieux" FORCE )
SET( SIZEOF_UINT_LEAST8_T 1 INTERNAL "lemieux" FORCE )
#
SET( SIZEOF___INT64 8 INTERNAL "lemieux" FORCE )
#
# VTK
#
SET( VTK_USE_64BIT_IDS ON CACHE BOOL "lemieux" FORCE )
SET( VTK_SIZEOF___INT64 8 INTERNAL "lemieux" FORCE )
SET( VTK_TYPE_SAME_LONG_AND___INT64 1 INTERNAL "lemieux" FORCE )
SET( VTK_HAVE_OLD_STRSTREAM_H 1 INTERNAL "lemieux" FORCE )
SET( VTK_ISTREAM_SUPPORTS_LONG_LONG 1 INTERNAL "lemieux" FORCE )
SET( VTK_OSTREAM_SUPPORTS_LONG_LONG 1 INTERNAL "lemieux" FORCE )
#
# Misc
#
SET( ICE_HAVE_64BIT_STREAMS 1 INTERNAL "lemieux" FORCE )
#
# MPI and Other Parallel Issues
#
SET( CMAKE_USE_PTHREADS ON CACHE BOOL "lemieux" FORCE )
SET( OSMESA_INCLUDE_DIR "/usr/include" CACHE PATH "lemieux" FORCE )
SET( OSMESA_LIBRARY "/usr/lib/libOSMesa.so" CACHE FILEPATH "lemieux" FORCE )
SET( SCPCOMMAND "/usr/psc/bin/scp" CACHE FILEPATH "lemieux" FORCE )
SET( VTK_MPIRUN_EXE "/bin/prun" CACHE FILEPATH "lemieux" FORCE )
SET( VTK_MPI_MAX_NUMPROCS "64" CACHE STRING "lemieux" FORCE )
SET( VTK_MPI_NUMPROC_FLAG "-n" CACHE STRING "lemieux" FORCE )
SET( VTK_MPI_PREFLAGS "-N $RMS_NODES" CACHE STRING "lemieux" FORCE )
SET( VTK_OPENGL_HAS_OSMESA ON CACHE BOOL "lemieux" FORCE )
SET( VTK_USE_CR OFF CACHE BOOL "lemieux" FORCE )
SET( VTK_USE_EXECUTIVES OFF CACHE BOOL "lemieux" FORCE )
More information about the ParaView
mailing list