Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a6d1d527 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

morse_check_static_or_dynamic: we may not find the libraries extension, if...

morse_check_static_or_dynamic: we may not find the libraries extension, if given by the user as a list of linker flags (can be many different things), e.g. -Wl,-rpath,/opt/lib -L/opt/lib -lfoo -lbar, so that we replace FATAL_ERROR by WARNING in the message if extension not found
parent c47785f3
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment