Skip to content

Commit

Permalink
Merge pull request #194 from loumalouomega/master
Browse files Browse the repository at this point in the history
[CMake] Correcting last versions of CMake modules
  • Loading branch information
Algiane authored Dec 19, 2022
2 parents b2e3075 + 2f5ea39 commit adf56d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cmake/tools/FindMMG2D.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ if(MMG_INCDIR)
NAMES libmmgtypes.h
HINTS ${MMG_INCDIR}
PATH_SUFFIXES "mmg/mmg2d" "mmg2d")
else()
if(MMG_DIR)
set(MMG2D_libmmgtypes.h_DIRS "MMG2D_libmmgtypes.h_DIRS-NOTFOUND")
find_path(MMG2D_libmmgtypes.h_DIRS
Expand All @@ -105,8 +106,7 @@ if(MMG_INCDIR)
PATH_SUFFIXES "mmg" "mmg/common")
endif()
endif()
STRING(REGEX REPLACE "(mmg/mmg2d)|(mmg/common)" ""
MMG2D_libmmgtypes.h_DIRS ${MMG2D_libmmgtypes.h_DIRS} )
STRING(REGEX REPLACE "(mmg/mmg2d)|(mmg/common)" "" MMG2D_libmmgtypes.h_DIRS "${MMG2D_libmmgtypes.h_DIRS}")

mark_as_advanced(MMG2D_libmmgtypes.h_DIRS)

Expand Down Expand Up @@ -257,4 +257,4 @@ mark_as_advanced(MMG_DIR_FOUND)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MMG2D DEFAULT_MSG
MMG2D_LIBRARIES
MMG2D_WORKS)
MMG2D_WORKS)
6 changes: 3 additions & 3 deletions cmake/tools/FindMMG3D.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ if(MMG_INCDIR)
NAMES libmmgtypes.h
HINTS ${MMG_INCDIR}
PATH_SUFFIXES "mmg/mmg3d" "mmg3d")
else()
if(MMG_DIR)
set(MMG3D_libmmgtypes.h_DIRS "MMG3D_libmmgtypes.h_DIRS-NOTFOUND")
find_path(MMG3D_libmmgtypes.h_DIRS
Expand All @@ -105,8 +106,7 @@ if(MMG_INCDIR)
PATH_SUFFIXES "mmg" "mmg/common")
endif()
endif()
STRING(REGEX REPLACE "(mmg/mmg3d)|(mmg/common)" ""
MMG3D_libmmgtypes.h_DIRS ${MMG3D_libmmgtypes.h_DIRS} )
STRING(REGEX REPLACE "(mmg/mmg3d)|(mmg/common)" "" MMG3D_libmmgtypes.h_DIRS "${MMG3D_libmmgtypes.h_DIRS}" )

mark_as_advanced(MMG3D_libmmgtypes.h_DIRS)

Expand Down Expand Up @@ -257,4 +257,4 @@ mark_as_advanced(MMG_DIR_FOUND)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MMG3D DEFAULT_MSG
MMG3D_LIBRARIES
MMG3D_WORKS)
MMG3D_WORKS)
6 changes: 3 additions & 3 deletions cmake/tools/FindMMGS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ if(MMG_INCDIR)
NAMES libmmgtypes.h
HINTS ${MMG_INCDIR}
PATH_SUFFIXES "mmg/mmgs" "mmgs")
else()
if(MMG_DIR)
set(MMGS_libmmgtypes.h_DIRS "MMGS_libmmgtypes.h_DIRS-NOTFOUND")
find_path(MMGS_libmmgtypes.h_DIRS
Expand All @@ -105,8 +106,7 @@ if(MMG_INCDIR)
PATH_SUFFIXES "mmg" "mmg/common")
endif()
endif()
STRING(REGEX REPLACE "(mmg/mmgs)|(mmg/common)" ""
MMGS_libmmgtypes.h_DIRS ${MMGS_libmmgtypes.h_DIRS} )
STRING(REGEX REPLACE "(mmg/mmgs)|(mmg/common)" "" MMGS_libmmgtypes.h_DIRS "${MMGS_libmmgtypes.h_DIRS}" )

mark_as_advanced(MMGS_libmmgtypes.h_DIRS)

Expand Down Expand Up @@ -257,4 +257,4 @@ mark_as_advanced(MMG_DIR_FOUND)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MMGS DEFAULT_MSG
MMGS_LIBRARIES
MMGS_WORKS)
MMGS_WORKS)

0 comments on commit adf56d6

Please sign in to comment.