Code cleanup and factorization
- Factorize find_path and find_library by creating morse_find_{path,library} that have the Morse wanted behavior
- Look inside
PROJECT_{LIB,INC}DIR
- Look inside
PROJECT_DIR/{include,lib}
- Look into the system
- Look inside
- Add
MORSE_ENABLE_{INCLUDE,LIBRARY}_ENV
options to automatically extend:- CMAKE_INCLUDE_PREFIX with environment variables:
-
INCLUDE
on Windows -
INCLUDE
,C_INCLUDE_PATH
,CPATH
,INCLUDE_PATH
on other systems
-
- 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
-
- CMAKE_INCLUDE_PREFIX with environment variables:
- 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