@@ -31,11 +31,6 @@ target_include_directories(bsdtests
3131 PUBLIC 
3232 # bsdtests.h needs config_ac.h 
3333 ${PROJECT_BINARY_DIR} )
34- if (BSD_OVERLAY_FOUND)
35-  target_compile_options (bsdtests
36-  PRIVATE 
37-  ${BSD_OVERLAY_CFLAGS} )
38- endif ()
3934if  (WIN32 )
4035 target_sources (bsdtests
4136 PRIVATE 
@@ -58,23 +53,13 @@ target_include_directories(bsdtestharness
5853 ${CMAKE_CURRENT_BINARY_DIR} 
5954 ${CMAKE_CURRENT_SOURCE_DIR} 
6055 ${PROJECT_SOURCE_DIR} )
61- if (BSD_OVERLAY_FOUND)
62-  target_compile_options (bsdtestharness
63-  PRIVATE 
64-  ${BSD_OVERLAY_CFLAGS} )
65- endif ()
6656target_link_libraries (bsdtestharness
6757 PRIVATE 
6858 bsdtests
6959 dispatch)
70- if (BSD_OVERLAY_FOUND)
71-  target_link_libraries (bsdtestharness
72-  PRIVATE 
73-  ${BSD_OVERLAY_LDFLAGS} )
74- endif ()
7560
7661function (add_unit_test name )
77-  set (options  DISABLED_TEST;NO_BSD_OVERLAY )
62+  set (options  DISABLED_TEST)
7863 set (single_value_args)
7964 set (multiple_value_args SOURCES )
8065 cmake_parse_arguments (AUT "${options} "  "${single_value_args} "  "${multiple_value_args} "  ${ARGN} )
@@ -97,11 +82,6 @@ function(add_unit_test name)
9782 target_include_directories (${name} 
9883 SYSTEM  BEFORE PRIVATE 
9984 "${BlocksRuntime_INCLUDE_DIR} " )
100-  if (BSD_OVERLAY_FOUND AND  NOT  AUT_NO_BSD_OVERLAY)
101-  target_compile_options (${name} 
102-  PRIVATE 
103-  ${BSD_OVERLAY_CFLAGS} )
104-  endif ()
10585 if ("${CMAKE_C_SIMULATE_ID} "  STREQUAL  "MSVC" )
10686 target_compile_options (${name}  PRIVATE  -Xclang -fblocks)
10787 target_compile_options (${name}  PRIVATE  /W3 -Wno-deprecated-declarations)
@@ -115,11 +95,6 @@ function(add_unit_test name)
11595 dispatch
11696 Threads::Threads
11797 BlocksRuntime::BlocksRuntime)
118-  if (BSD_OVERLAY_FOUND AND  NOT  AUT_NO_BSD_OVERLAY)
119-  target_link_libraries (${name} 
120-  PRIVATE 
121-  ${BSD_OVERLAY_LDFLAGS} )
122-  endif ()
12398 target_link_libraries (${name}  PRIVATE  bsdtests)
12499 add_test (NAME  ${name} 
125100 COMMAND  bsdtestharness $<TARGET_FILE:${name} >)
@@ -199,7 +174,7 @@ endforeach()
199174set_tests_properties (dispatch_io_pipe_close PROPERTIES TIMEOUT  5)
200175
201176# test dispatch API for various C/CXX language variants 
202- add_unit_test(dispatch_c99 NO_BSD_OVERLAY  SOURCES  dispatch_c99.c)
177+ add_unit_test(dispatch_c99 SOURCES  dispatch_c99.c)
203178add_unit_test(dispatch_plusplus SOURCES  dispatch_plusplus.cpp)
204179
205180# test-specific link options 
0 commit comments