Commit cacab3a2 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

FindMorseCommon.cmake: fix suffix detection when there is version number in...

FindMorseCommon.cmake: fix suffix detection when there is version number in the lib name like starpu-1.3.dylib
parent 37bce4cb
......@@ -99,6 +99,9 @@ macro(morse_check_static_or_dynamic package libraries)
if (_suffix MATCHES "\\.so$" OR _suffix MATCHES "\\.so\\.")
set(_suffix ".so")
endif()
if (_suffix MATCHES "\\.dylib$" OR _suffix MATCHES "\\.dylib\\.")
set(_suffix ".dylib")
endif()
set(${package}_STATIC 0)
if (WIN32)
if(${_suffix} MATCHES "\\.lib$")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment