Skip to content

Commit

Permalink
Fix mmg_get_tagname test case compilation when USE_ELAS is OFF and US…
Browse files Browse the repository at this point in the history
…E_VTK is ON.
  • Loading branch information
Algiane committed Sep 14, 2024
1 parent ad10412 commit f0d2722
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/testing/mmg_tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,12 @@ IF ( NOT WIN32 )
INCLUDE_DIRECTORIES ( AFTER ${SCOTCH_INCLUDE_DIRS} )
ENDIF()

SET( GET_TAGNAME_LIBRARIES ${LIBRARIES} )

IF( ELAS_FOUND AND NOT USE_ELAS MATCHES OFF )
# Set flags for building test program
INCLUDE_DIRECTORIES(AFTER ${ELAS_INCLUDE_DIR})
SET( GET_TAGNAME_LIBRARIES ${ELAS_LINK_FLAGS} ${ELAS_LIBRARY} ${LIBRARIES})
SET( GET_TAGNAME_LIBRARIES ${ELAS_LINK_FLAGS} ${ELAS_LIBRARY} ${GET_TAGNAME_LIBRARIES} )

ENDIF ( )

Expand All @@ -476,9 +478,11 @@ IF ( NOT WIN32 )
target_include_directories( mmg_get_tagname BEFORE PUBLIC ${SCOTCH_INCLUDE_DIRS} )
ENDIF ( )

SET( GET_TAGNAME_LIBRARIES ${LIBRARIES} )

IF( ELAS_FOUND AND NOT USE_ELAS MATCHES OFF )
target_include_directories( mmg_get_tagname AFTER PUBLIC ${ELAS_INCLUDE_DIR} )
SET( GET_TAGNAME_LIBRARIES ${ELAS_LINK_FLAGS} ${ELAS_LIBRARY} ${LIBRARIES})
SET( GET_TAGNAME_LIBRARIES ${ELAS_LINK_FLAGS} ${ELAS_LIBRARY} ${GET_TAGNAME_LIBRARIES})
ENDIF ( )

ENDIF ( )
Expand Down

0 comments on commit f0d2722

Please sign in to comment.