Skip to content

Commit

Permalink
Applies PR suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyweiss committed Nov 6, 2024
1 parent 8b5bfe0 commit 24fa8c7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/cmake/thirdparty/FindOpenCASCADE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,8 @@
# OPENCASCADE_LIBRARIES - The OpenCASCADE libraries
#------------------------------------------------------------------------------

# First check for OPENCASCADE_DIR
if (NOT EXISTS "${OPENCASCADE_DIR}")
message(FATAL_ERROR "Given OPENCASCADE_DIR does not exist: ${OPENCASCADE_DIR}")
endif()

if (NOT IS_DIRECTORY "${OPENCASCADE_DIR}")
message(FATAL_ERROR "Given OPENCASCADE_DIR is not a directory: ${OPENCASCADE_DIR}")
endif()

# Note: Axom is using OpenCASCADE for its data exchange component
axom_assert_is_directory(DIR_VARIABLE OPENCASCADE_DIR)
find_package(OpenCASCADE CONFIG QUIET NO_DEFAULT_PATH
HINTS ${OPENCASCADE_DIR}/lib/cmake
${OPENCASCADE_DIR}
Expand Down

0 comments on commit 24fa8c7

Please sign in to comment.