Merge topic 'MinorFixForEcos'
1ab4b3e
guard eCos.cmake against multiple inclusion (#12987)
This commit is contained in:
commit
a407291c5d
|
@ -1,4 +1,11 @@
|
|||
# support for eCos http://ecos.sourceware.org
|
||||
|
||||
# Guard against multiple inclusion, which e.g. leads to multiple calls to add_definition() #12987
|
||||
IF(__ECOS_CMAKE_INCLUDED)
|
||||
RETURN()
|
||||
ENDIF()
|
||||
SET(__ECOS_CMAKE_INCLUDED TRUE)
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "") # -shared
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
|
||||
|
|
Loading…
Reference in New Issue