Check once for system-independent headers (#270)
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
b9e5e8cd7d
commit
a1aaa2808f
1 changed files with 13 additions and 12 deletions
|
@ -183,14 +183,6 @@ foreach(feature atomics cdtors environ heap ifaddrs random rusage
|
|||
endif()
|
||||
set(system_exists FALSE)
|
||||
|
||||
# Allow custom implementations for a feature. e.g. lwip as opposed to
|
||||
# windows or posix.
|
||||
set(_system_name "${system_name}")
|
||||
if(NOT HAVE_${feature_uc} MATCHES "[tT][rR][uU][eE]")
|
||||
set(_system_name "${HAVE_${feature_uc}}")
|
||||
endif()
|
||||
|
||||
foreach(system ${_system_name} posix)
|
||||
# Headers that must remain private but are required by other runtime
|
||||
# source files must be located in src/<feature>/dds/ddsrt.
|
||||
if(IS_DIRECTORY "${source_path}/${feature}/include")
|
||||
|
@ -203,6 +195,15 @@ foreach(feature atomics cdtors environ heap ifaddrs random rusage
|
|||
ddsrt INTERFACE
|
||||
"$<BUILD_INTERFACE:${source_path}/${feature}/include/>")
|
||||
endif()
|
||||
|
||||
# Allow custom implementations for a feature. e.g. lwip as opposed to
|
||||
# windows or posix.
|
||||
set(_system_name "${system_name}")
|
||||
if(NOT HAVE_${feature_uc} MATCHES "[tT][rR][uU][eE]")
|
||||
set(_system_name "${HAVE_${feature_uc}}")
|
||||
endif()
|
||||
|
||||
foreach(system ${_system_name} posix)
|
||||
if(IS_DIRECTORY "${source_path}/${feature}/${system}")
|
||||
file(GLOB_RECURSE
|
||||
files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue