Skip to content

Commit

Permalink
Avoid looking for unused libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed Dec 29, 2023
1 parent 59b404b commit 73d3149
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions cmake/FindSIMMETRIX.cmake
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
include(FindPackageHandleStandardArgs)

find_path(GMI_SIM_INCLUDE_DIR gmi_sim.h)
find_path(APF_SIM_INCLUDE_DIR apfSIM.h)
if (SCOREC)
find_path(GMI_SIM_INCLUDE_DIR gmi_sim.h)
find_path(APF_SIM_INCLUDE_DIR apfSIM.h)

list(APPEND SIMMETRIX_INCLUDE_DIR
${GMI_SIM_INCLUDE_DIR}
${APF_SIM_INCLUDE_DIR}
)

find_library(GMI_SIM_LIB gmi_sim)
find_library(APF_SIM_LIB apf_sim)
endif()

find_path(MESH_SIM_INCLUDE_DIR MeshSim.h)

list(APPEND SIMMETRIX_INCLUDE_DIR
${GMI_SIM_INCLUDE_DIR}
${APF_SIM_INCLUDE_DIR}
${MESH_SIM_INCLUDE_DIR}
)

find_library(GMI_SIM_LIB gmi_sim)
find_library(APF_SIM_LIB apf_sim)

set(SIM_LIB_HINT ${SIMMETRIX_ROOT}/lib/x64_rhel7_gcc48)

find_library(SIM_DISCRETE_LIB SimDiscrete ${SIM_LIB_HINT})
Expand Down

0 comments on commit 73d3149

Please sign in to comment.