Check once for system-independent headers (#270)

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2019-11-06 11:23:49 +01:00 committed by eboasson
parent b9e5e8cd7d
commit a1aaa2808f

View file

@ -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