From 7179a01c454a997ad884cba3d2cd1804989c6adc Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Mon, 3 Jul 2023 19:00:12 +0300 Subject: flip logic around --- tests/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 1828f0f..7a7e391 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -599,9 +599,12 @@ add_test(sha_test sha_test) if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore") set(SIGNERTEST_SRC signertest.c) check_function_exists(pipe2 HAVE_PIPE2) - if(!HAVE_PIPE2) + if(HAVE_PIPE2) + add_definitions(-DHAVE_PIPE2) + else() set(SIGNERTEST_SRC ${SIGNERTEST_SRC} compat/pipe2.c) endif() + set_source_files_properties(signertest.c PROPERTIES COMPILE_FLAGS -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") add_executable(signertest ${SIGNERTEST_SRC}) -- cgit v1.2.3-55-g6feb