forked from trilinos/Trilinos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'trilinos/Trilinos:develop' (9f89a22) into 'tcad-charon/Trilino…
…s:develop' (28a7b37). * trilinos-develop: Have Kokkos TriBITS build set compiler options as target properties (trilinos#11545) Update logic for TPL_ENABLE_Kokkos=ON (trilinos#11545) TrilinosInstallTests_find_package_Trilinos: Run in own subdir Move check for ParMETS version for Zoltan2 to Zoltan2 (trilinos#63) Have Kokkos TriBITS build properly export options to package config files (trilinos#11545)
- Loading branch information
Showing
8 changed files
with
73 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/zoltan2/core/cmake/Zoltan2CheckParMETISVersion.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
include(CheckCSourceCompiles) | ||
|
||
FUNCTION(ZOLTAN2_CHECK_PARMETIS_HAS_VERSION_4_0_3 VARNAME) | ||
SET(SOURCE | ||
" | ||
#include <stdio.h> | ||
#include <parmetis.h> | ||
int main() | ||
{ | ||
#if PARMETIS_MAJOR_VERSION > 4 | ||
return 0; | ||
#elif PARMETIS_MAJOR_VERSION == 4 && PARMETIS_MINOR_VERSION > 0 | ||
return 0; | ||
#elif PARMETIS_MAJOR_VERSION == 4 && PARMETIS_MINOR_VERSION == 0 && PARMETIS_SUBMINOR_VERSION >= 3 | ||
return 0; | ||
#else | ||
parmetis_version_failure | ||
#endif | ||
} | ||
" | ||
) | ||
SET(CMAKE_REQUIRED_LIBRARIES ParMETIS::all_libs) | ||
CHECK_C_SOURCE_COMPILES("${SOURCE}" ${VARNAME}) | ||
ENDFUNCTION() |