Mentions légales du service

Skip to content

Code cleanup and factorization

Mathieu Faverge requested to merge hotfix into master
  • Factorize find_path and find_library by creating morse_find_{path,library} that have the Morse wanted behavior
    1. Look inside PROJECT_{LIB,INC}DIR
    2. Look inside PROJECT_DIR/{include,lib}
    3. Look into the system
  • Add MORSE_ENABLE_{INCLUDE,LIBRARY}_ENV options to automatically extend:
    1. CMAKE_INCLUDE_PREFIX with environment variables:
      • INCLUDE on Windows
      • INCLUDE, C_INCLUDE_PATH, CPATH, INCLUDE_PATH on other systems
    2. CMAKE_LIBRARY_PREFIX with environment variables:
      • LIBRARY_PATH, LIB on Windows
      • LIBRARY_PATH, DYLD_LIBRARY_PATH on MacOS
      • LIBRARY_PATH, LD_LIBRARY_PATH on Linux
  • Update all non pkg-config based detection to use these new functions
  • Fix issue with BLAS/LAPACK failed multi-threaded detection that induced a failed BLAS/LAPACK detection even if SEQ version was found
  • Factorize CBLAS, TMG, and LAPACKE detection and make sur they use the correct underlying BLAS/LAPACK library

Merge request reports