@@ -157,35 +157,30 @@ endif()
157
157
# ##############################################################################
158
158
separate_arguments (CFLAGS UNIX_COMMAND "${CMAKE_C_FLAGS} " )
159
159
160
- if (NOT LIBVSYNC_OPEN_DISTRO_TESTING )
161
- add_custom_command (
162
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR} /vatomic_expand.h"
163
- COMMAND
164
- ${CMAKE_C_COMPILER} -E ${CFLAGS} "${VATOMIC_INC} " -include
165
- vsync/atomic.h ${CMAKE_CURRENT_SOURCE_DIR} /dispatcher_test.c >
166
- "${CMAKE_CURRENT_BINARY_DIR} /vatomic_expand.h"
167
- DEPENDS vatomic "${CMAKE_CURRENT_SOURCE_DIR} /dispatcher_test.c"
168
- COMMAND_EXPAND_LISTS VERBATIM )
169
-
170
- add_custom_target (expand ALL
171
- DEPENDS "${CMAKE_CURRENT_BINARY_DIR} /vatomic_expand.h" )
172
-
173
- # ##########################################################################
174
- # test vatomic dispatcher
175
- # ##########################################################################
176
- add_executable (dispatcher_test dispatcher_test.c )
177
- target_compile_options (dispatcher_test PUBLIC ${TEST_OPTS} )
178
- target_link_libraries (dispatcher_test vatomic )
179
- v_add_bin_test (NAME dispatcher_test COMMAND dispatcher_test )
180
-
181
- # ##########################################################################
182
- # test freestanding
183
- # ##########################################################################
184
- add_executable (freestanding_test freestanding_test.c )
185
- target_compile_options (freestanding_test PUBLIC ${TEST_OPTS} -nostdinc )
186
- configure_file (include /vfreestanding.h.tpl include /vfreestanding.h )
187
- target_include_directories (freestanding_test
188
- PRIVATE ${CMAKE_CURRENT_BINARY_DIR} /include )
189
- target_link_libraries (freestanding_test vatomic )
190
- v_add_bin_test (NAME freestanding_test COMMAND freestanding_test )
191
- endif ()
160
+ add_custom_command (
161
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR} /vatomic_expand.h"
162
+ COMMAND
163
+ ${CMAKE_C_COMPILER} -E ${CFLAGS} "${VATOMIC_INC} " -include
164
+ vsync/atomic.h ${CMAKE_CURRENT_SOURCE_DIR} /dispatcher_test.c >
165
+ "${CMAKE_CURRENT_BINARY_DIR} /vatomic_expand.h"
166
+ DEPENDS vatomic "${CMAKE_CURRENT_SOURCE_DIR} /dispatcher_test.c"
167
+ COMMAND_EXPAND_LISTS VERBATIM )
168
+ add_custom_target (expand ALL
169
+ DEPENDS "${CMAKE_CURRENT_BINARY_DIR} /vatomic_expand.h" )
170
+ # ##############################################################################
171
+ # test vatomic dispatcher
172
+ # ##############################################################################
173
+ add_executable (dispatcher_test dispatcher_test.c )
174
+ target_compile_options (dispatcher_test PUBLIC ${TEST_OPTS} )
175
+ target_link_libraries (dispatcher_test vatomic )
176
+ v_add_bin_test (NAME dispatcher_test COMMAND dispatcher_test )
177
+ # ##############################################################################
178
+ # test freestanding
179
+ # ##############################################################################
180
+ add_executable (freestanding_test freestanding_test.c )
181
+ target_compile_options (freestanding_test PUBLIC ${TEST_OPTS} -nostdinc )
182
+ configure_file (include /vfreestanding.h.tpl include /vfreestanding.h )
183
+ target_include_directories (freestanding_test
184
+ PRIVATE ${CMAKE_CURRENT_BINARY_DIR} /include )
185
+ target_link_libraries (freestanding_test vatomic )
186
+ v_add_bin_test (NAME freestanding_test COMMAND freestanding_test )
0 commit comments