Browse Source

Adapted FindCusp to fail silently if cusp is not found. Now configuring fails with a meaningful error message instead of syntax errors.

Former-commit-id: e77388a186
tempestpy_adaptions
David_Korzeniewski 10 years ago
parent
commit
5299ed5172
  1. 3
      resources/cmake/FindCusp.cmake

3
resources/cmake/FindCusp.cmake

@ -23,7 +23,6 @@ find_path(CUSP_INCLUDE_DIR
) )
if(CUSP_INCLUDE_DIR) if(CUSP_INCLUDE_DIR)
list(REMOVE_DUPLICATES CUSP_INCLUDE_DIR) list(REMOVE_DUPLICATES CUSP_INCLUDE_DIR)
endif(CUSP_INCLUDE_DIR)
# Find cusp version # Find cusp version
file(STRINGS ${CUSP_INCLUDE_DIR}/cusp/version.h file(STRINGS ${CUSP_INCLUDE_DIR}/cusp/version.h
@ -53,3 +52,5 @@ find_package_handle_standard_args(Cusp REQUIRED_VARS CUSP_INCLUDE_DIR VERSION_VA
set(CUSP_INCLUDE_DIRS ${CUSP_INCLUDE_DIR}) set(CUSP_INCLUDE_DIRS ${CUSP_INCLUDE_DIR})
mark_as_advanced(CUSP_INCLUDE_DIR) mark_as_advanced(CUSP_INCLUDE_DIR)
endif(CUSP_INCLUDE_DIR)
Loading…
Cancel
Save