diff --git a/modules/find/FindMorseCommon.cmake b/modules/find/FindMorseCommon.cmake index 004d341882d2bff36a806398096f233b0a46e67d..930c14540358966af4afadc1b7bd6ed51ee6ed86 100644 --- a/modules/find/FindMorseCommon.cmake +++ b/modules/find/FindMorseCommon.cmake @@ -70,8 +70,9 @@ macro(morse_finds_remove_duplicates) endif() endmacro() -# add imported target for non-cmake projects or projects which do not provide -# "PROJECT"Config.cmake file at installation +# try to guess libraries extension, if dyanmic or static +# if dynamic we set ${package}_STATIC to 0, else to 1 +# if we do not find the extension ${package}_STATIC is not set at all macro(morse_check_static_or_dynamic package libraries) list(GET ${libraries} 0 _first_lib) get_filename_component(_suffix ${_first_lib} EXT) @@ -124,7 +125,7 @@ macro(morse_check_static_or_dynamic package libraries) endif() endif() else() - message(FATAL_ERROR "${package} could not detect library extension") + message( WARNING "${package} could not detect library extension") endif() endmacro()