mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-16 10:52:08 +00:00
hot fix: change METIS_REAL_x into PSB_METIS_REAL_x and relative compiler flag -DPSB_METIS_REAL_x
This commit is contained in:
+6
-6
@@ -697,11 +697,11 @@ if(METIS_FOUND)
|
||||
OUTPUT_VARIABLE type_size)
|
||||
string(STRIP "${type_size}" type_size)
|
||||
if (type_name STREQUAL "float")
|
||||
set(METIS_REAL_32 "${type_size}" PARENT_SCOPE)
|
||||
add_definitions(-DMETIS_REAL_32)
|
||||
set(PSB_METIS_REAL_32 "${type_size}" PARENT_SCOPE)
|
||||
add_definitions(-DPSB_METIS_REAL_32)
|
||||
elseif (type_name STREQUAL "double")
|
||||
set(METIS_REAL_64 "${type_size}" PARENT_SCOPE)
|
||||
add_definitions(-DMETIS_REAL_64)
|
||||
set(PSB_METIS_REAL_64 "${type_size}" PARENT_SCOPE)
|
||||
add_definitions(-DPSB_METIS_REAL_64)
|
||||
endif()
|
||||
else()
|
||||
message(WARNING "Failed to compile test for type size: ${type_name}")
|
||||
@@ -721,9 +721,9 @@ if(METIS_FOUND)
|
||||
|
||||
|
||||
# Determine METIS_INDEX based on real type sizes
|
||||
if(DEFINED METIS_REAL_32)
|
||||
if(DEFINED PSB_METIS_REAL_32)
|
||||
set(METIS_INDEX 32)
|
||||
elseif(DEFINED METIS_REAL_64)
|
||||
elseif(DEFINED PSB_METIS_REAL_64)
|
||||
set(METIS_INDEX 64)
|
||||
else()
|
||||
message(WARNING "Neither METIS_REAL_32 nor METIS_REAL_64 is defined.")
|
||||
|
||||
Reference in New Issue
Block a user