Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 949a9a16 authored by frey_m's avatar frey_m
Browse files

AMR: Adapt FindCCSE.cmake to AMReX modifications

parent a4e8c1bf
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,9 @@ else(CCSE_LIBRARIES AND CCSE_INCLUDE_DIRS AND CCSE_PERL_DIR)
endif()
# Now, make sure the rest are in the same place
set(CCSE_LIBRARIES cboxlib;fboxlib;cfboxlib;box_camrdata)
# fboxlib is repeated twice to take care of circulr dependency
# when ENABALE_MPI=1
set(CCSE_LIBRARIES fboxlib;cboxlib;fboxlib;cfboxlib;box_camrdata)
foreach (L ${CCSE_LIBRARIES})
......@@ -177,9 +179,9 @@ else(CCSE_LIBRARIES AND CCSE_INCLUDE_DIRS AND CCSE_PERL_DIR)
set(CCSE_LIBRARY_DIRS ${CCSE_LIBRARY_DIR})
# Add this to fix circular dependency
if (ENABLE_MPI)
set(CCSE_LIBRARIES fboxlib;cboxlib;fboxlib;cfboxlib;box_camrdata)
endif (ENABLE_MPI)
#if (ENABLE_MPI)
# set(CCSE_LIBRARIES fboxlib;cboxlib;fboxlib;cfboxlib;box_camrdata)
#endif (ENABLE_MPI)
# Search for perl scripts
# Search order preference:
......@@ -187,63 +189,62 @@ else(CCSE_LIBRARIES AND CCSE_INCLUDE_DIRS AND CCSE_PERL_DIR)
# (2) CCSE_DIR/perl
# (3) Default CMake paths See cmake --html-help=out.html file for more information.
#
set(ccse_perl_name strip72)
# set(ccse_perl_name strip72)
if (CCSE_PERL_DIR)
# if (CCSE_PERL_DIR)
if (EXISTS "${CCSE_PERL_DIR}")
# if (EXISTS "${CCSE_PERL_DIR}")
find_path(CCSE_PERL
NAMES ${ccse_perl_name}
HINTS ${CCSE_PERL_DIR}
NO_DEFAULT_PATH)
else()
message(SEND_ERROR "CCSE_PERL_DIR=${CCSE_PERL_DIR} does not exist")
set(CCSE_PERL "CCSE_PERL-NOTFOUND")
endif()
# find_path(CCSE_PERL
# NAMES ${ccse_perl_name}
# HINTS ${CCSE_PERL_DIR}
# NO_DEFAULT_PATH)
# else()
# message(SEND_ERROR "CCSE_PERL_DIR=${CCSE_PERL_DIR} does not exist")
# set(CCSE_PERL "CCSE_PERL-NOTFOUND")
# endif()
else()
# else()
if(CCSE_DIR)
# if(CCSE_DIR)
if (EXISTS "${CCSE_DIR}" )
# if (EXISTS "${CCSE_DIR}" )
find_path(CCSE_PERL
NAMES ${ccse_perl_name}
HINTS "${CCSE_DIR}/perl"
NO_DEFAULT_PATH)
# find_path(CCSE_PERL
# NAMES ${ccse_perl_name}
# HINTS "${CCSE_DIR}/perl"
# NO_DEFAULT_PATH)
if ( NOT CCSE_PERL )
message(SEND_ERROR "CCSE Perl scripts not in CCSE_DIR/perl=${CCSE_DIR}/perl")
else()
set(CCSE_PERL_DIR ${CCSE_PERL})
endif()
# if ( NOT CCSE_PERL )
# # message(SEND_ERROR "CCSE Perl scripts not in CCSE_DIR/perl=${CCSE_DIR}/perl")
# else()
# set(CCSE_PERL_DIR ${CCSE_PERL})
# endif()
else()
# else()
message(SEND_ERROR "CCSE_DIR/perl=${CCSE_DIR}/perl does not exist")
# message(SEND_ERROR "CCSE_DIR/perl=${CCSE_DIR}/perl does not exist")
endif()
# endif()
endif()
# endif()
endif()
# endif()
#
endif(CCSE_LIBRARIES AND CCSE_INCLUDE_DIRS AND CCSE_PERL_DIR)
# Send useful message if everything is found
find_package_handle_standard_args(CCSE DEFAULT_MSG
CCSE_LIBRARIES
CCSE_LIBRARY_DIRS
CCSE_INCLUDE_DIRS
CCSE_PERL_DIR)
CCSE_LIBRARY_DIRS
CCSE_INCLUDE_DIRS )
mark_as_advanced(
CCSE_INCLUDE_DIR
CCSE_INCLUDE_DIRS
CCSE_LIBRARIES
CCSE_LIBRARY_DIR
CCSE_LIBRARY_DIRS
CCSE_PERL_DIR
)
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