Commit 6bbc024b authored by Ben Boeckel's avatar Ben Boeckel
Browse files

FindBoxlib: rename to match upstream

parent 304ed6de
# Try to find BoxLib library and headers.
# This file sets the following variables:
#
# BoxLib_INCLUDE_DIR, where to find BoxLib.H, etc.
# BoxLib_LIBRARIES, the libraries to link against
# BoxLib_FOUND, If false, do not try to use BoxLib.
FIND_PATH( BoxLib_INCLUDE_DIR BoxLib.H
/usr/local/include
/usr/include
)
FIND_LIBRARY( BoxLib_C_LIBRARY NAMES cboxlib
/usr/lib
/usr/local/lib
)
FIND_LIBRARY( BoxLib_Fortran_LIBRARY NAMES fboxlib
/usr/lib
/usr/local/lib
)
IF(BoxLib_C_LIBRARY AND BoxLib_Fortran_LIBRARY)
SET( BoxLib_LIBRARIES ${BoxLib_C_LIBRARY} ${BoxLib_Fortran_LIBRARY})
ENDIF()
# handle the QUIETLY and REQUIRED arguments and set BoxLib_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(BoxLib DEFAULT_MSG BoxLib_C_LIBRARY BoxLib_Fortran_LIBRARY BoxLib_INCLUDE_DIR)
MARK_AS_ADVANCED(
BoxLib_INCLUDE_DIR
BoxLib_C_LIBRARY
BoxLib_Fortran_LIBRARY
)
# Try to find Boxlib library and headers.
# This file sets the following variables:
#
# Boxlib_INCLUDE_DIR, where to find BoxLib.H, etc.
# Boxlib_LIBRARIES, the libraries to link against
# Boxlib_FOUND, If false, do not try to use Boxlib.
FIND_PATH( Boxlib_INCLUDE_DIR BoxLib.H
/usr/local/include
/usr/include
)
FIND_LIBRARY( Boxlib_C_LIBRARY NAMES cboxlib
/usr/lib
/usr/local/lib
)
FIND_LIBRARY( Boxlib_Fortran_LIBRARY NAMES fboxlib
/usr/lib
/usr/local/lib
)
IF(Boxlib_C_LIBRARY AND Boxlib_Fortran_LIBRARY)
SET( Boxlib_LIBRARIES ${Boxlib_C_LIBRARY} ${Boxlib_Fortran_LIBRARY})
ENDIF()
# handle the QUIETLY and REQUIRED arguments and set Boxlib_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Boxlib DEFAULT_MSG Boxlib_C_LIBRARY Boxlib_Fortran_LIBRARY Boxlib_INCLUDE_DIR)
MARK_AS_ADVANCED(
Boxlib_INCLUDE_DIR
Boxlib_C_LIBRARY
Boxlib_Fortran_LIBRARY
)
......@@ -3,7 +3,7 @@ SET(SOURCES
BoxLibHelper.C
)
if(BoxLib_FOUND)
if(Boxlib_FOUND)
ADD_VISIT_READER(VisItBoxlib3DReader "1.0"
VISIT_READER_TYPE "STMD"
VISIT_READER_NAME "avtBoxlib3DFileFormat"
......
......@@ -120,9 +120,9 @@ endif(VISIT_BUILD_READER_Silo)
#-----------------------------------------------------------------------------
if(VISIT_BUILD_READER_Boxlib3D)
if(NOT BoxLib_FOUND)
find_package(BoxLib REQUIRED)
endif(NOT BoxLib_FOUND)
if(NOT Boxlib_FOUND)
find_package(Boxlib REQUIRED)
endif(NOT Boxlib_FOUND)
if(NOT GFortran_FOUND)
find_package(GFortran REQUIRED)
endif()
......@@ -172,9 +172,9 @@ if(HAVE_LIBSILO AND VISIT_BUILD_READER_Silo)
include_directories(${SILO_INCLUDE_DIR})
endif(HAVE_LIBSILO AND VISIT_BUILD_READER_Silo)
if(BoxLib_FOUND AND VISIT_BUILD_READER_Boxlib3D)
include_directories(${BoxLib_INCLUDE_DIR})
endif(BoxLib_FOUND AND VISIT_BUILD_READER_Boxlib3D)
if(Boxlib_FOUND AND VISIT_BUILD_READER_Boxlib3D)
include_directories(${Boxlib_INCLUDE_DIR})
endif(Boxlib_FOUND AND VISIT_BUILD_READER_Boxlib3D)
if(HAVE_LIBCGNS AND VISIT_BUILD_READER_CGNS)
include_directories(${CGNS_INCLUDE_DIR})
......@@ -217,13 +217,13 @@ if(HAVE_LIBSILO AND VISIT_BUILD_READER_Silo)
target_link_libraries(vtkIOVisItBridge LINK_PRIVATE ${SILO_LIBRARIES})
endif(HAVE_LIBSILO AND VISIT_BUILD_READER_Silo)
if(BoxLib_FOUND AND VISIT_BUILD_READER_Boxlib3D)
target_link_libraries(vtkIOVisItBridge LINK_PRIVATE ${BoxLib_LIBRARIES})
if(Boxlib_FOUND AND VISIT_BUILD_READER_Boxlib3D)
target_link_libraries(vtkIOVisItBridge LINK_PRIVATE ${Boxlib_LIBRARIES})
target_link_libraries(vtkIOVisItBridge LINK_PRIVATE ${GFortran_LIBRARIES})
if(VISIT_PARALLEL)
target_link_libraries(vtkIOVisItBridge LINK_PRIVATE ${MPI_CXX_LIBRARIES} ${MPI_Fortran_LIBRARIES})
endif()
endif(BoxLib_FOUND AND VISIT_BUILD_READER_Boxlib3D)
endif(Boxlib_FOUND AND VISIT_BUILD_READER_Boxlib3D)
if(HAVE_LIBCGNS AND VISIT_BUILD_READER_CGNS)
target_link_libraries(vtkIOVisItBridge LINK_PRIVATE ${CGNS_LIBRARIES})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment