diff options
author | Igor S. Gerasimov <i.s.ger@ya.ru> | 2021-10-07 02:08:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-07 13:33:51 (GMT) |
commit | a7843faa20d14a825e3c5d0ecba91112d697dbe6 (patch) | |
tree | 687a5af090a2d7f9cce14516c218791576dc21d6 | |
parent | 24fb43e3e757ad963082d9e92362242efb6ad265 (diff) | |
download | CMake-a7843faa20d14a825e3c5d0ecba91112d697dbe6.zip CMake-a7843faa20d14a825e3c5d0ecba91112d697dbe6.tar.gz CMake-a7843faa20d14a825e3c5d0ecba91112d697dbe6.tar.bz2 |
FindLAPACK: Replace set(A val) with string(APPEND)
-rw-r--r-- | Modules/FindLAPACK.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake index 32d15db..6801083 100644 --- a/Modules/FindLAPACK.cmake +++ b/Modules/FindLAPACK.cmake @@ -181,9 +181,9 @@ function(CHECK_LAPACK_LIBRARIES LIBRARIES _prefix _name _flags _list _deps _addl list(APPEND _libraries "${_library}") else() string(REGEX REPLACE "[^A-Za-z0-9]" "_" _lib_var "${_library}") - set(_combined_name ${_combined_name}_${_lib_var}) + string(APPEND _combined_name "_${_lib_var}") if(NOT "${_deps}" STREQUAL "") - set(_combined_name ${_combined_name}_deps) + string(APPEND _combined_name "_deps") endif() if(_libraries_work) find_library(${_prefix}_${_lib_var}_LIBRARY @@ -201,7 +201,7 @@ function(CHECK_LAPACK_LIBRARIES LIBRARIES _prefix _name _flags _list _deps _addl foreach(_flag ${_flags}) string(REGEX REPLACE "[^A-Za-z0-9]" "_" _flag_var "${_flag}") - set(_combined_name ${_combined_name}_${_flag_var}) + string(APPEND _combined_name "_${_flag_var}") endforeach() if(_libraries_work) # Test this combination of libraries. @@ -511,7 +511,7 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE) # Check for OpenMP support, VIA BLA_VENDOR of Arm_mp or Arm_ipl64_mp if(BLA_VENDOR MATCHES "_mp") - set(LAPACK_armpl_LIB "${LAPACK_armpl_LIB}_mp") + string(APPEND LAPACK_armpl_LIB "_mp") endif() check_lapack_libraries( @@ -559,7 +559,7 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE) endif() # Check for OpenMP support, VIA BLA_VENDOR of scs_mp if(BLA_VENDOR MATCHES "_mp") - set(_lapack_scsl_lib "${_lapack_scsl_lib}_mp") + string(APPEND _lapack_scsl_lib "_mp") endif() check_lapack_libraries( |