Hi @martin-frbg
When building OpenBLAS with INTERFACE64 enabled:
-
In Make-based builds, setting LIBNAMESUFFIX=64_ correctly gives:
→ openblas64_.lib
-
But in CMake-based builds, setting both -DINTERFACE64=ON -DLIBNAMESUFFIX=64_ gives:
→ openblas64__64.lib
This is because CMake appends _64 automatically when INTERFACE64 is set, even if LIBNAMESUFFIX is already provided.
|
if (INTERFACE64) |
|
set(SUFFIX64 64) |
|
set(SUFFIX64_UNDERSCORE _64) |
|
endif() |
|
set(OpenBLAS_LIBNAME ${LIBNAMEPREFIX}openblas${LIBNAMESUFFIX}${SUFFIX64_UNDERSCORE}) |
Expected:
If I set LIBNAMESUFFIX=64_, the final name should just be openblas64_.lib, regardless of INTERFACE64.
Can this behavior be aligned with the Make build logic?
Thanks!
Hi @martin-frbg
When building OpenBLAS with INTERFACE64 enabled:
In Make-based builds, setting LIBNAMESUFFIX=64_ correctly gives:
→ openblas64_.lib
But in CMake-based builds, setting both -DINTERFACE64=ON -DLIBNAMESUFFIX=64_ gives:
→ openblas64__64.lib
This is because CMake appends _64 automatically when INTERFACE64 is set, even if LIBNAMESUFFIX is already provided.
OpenBLAS/cmake/system.cmake
Lines 355 to 358 in cf9e34c
OpenBLAS/CMakeLists.txt
Line 126 in cf9e34c
Expected:
If I set LIBNAMESUFFIX=64_, the final name should just be openblas64_.lib, regardless of INTERFACE64.
Can this behavior be aligned with the Make build logic?
Thanks!