diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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) | |||
599 | if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore") | 599 | if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore") |
600 | set(SIGNERTEST_SRC signertest.c) | 600 | set(SIGNERTEST_SRC signertest.c) |
601 | check_function_exists(pipe2 HAVE_PIPE2) | 601 | check_function_exists(pipe2 HAVE_PIPE2) |
602 | if(!HAVE_PIPE2) | 602 | if(HAVE_PIPE2) |
603 | add_definitions(-DHAVE_PIPE2) | ||
604 | else() | ||
603 | set(SIGNERTEST_SRC ${SIGNERTEST_SRC} compat/pipe2.c) | 605 | set(SIGNERTEST_SRC ${SIGNERTEST_SRC} compat/pipe2.c) |
604 | endif() | 606 | endif() |
607 | |||
605 | set_source_files_properties(signertest.c PROPERTIES COMPILE_FLAGS | 608 | set_source_files_properties(signertest.c PROPERTIES COMPILE_FLAGS |
606 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | 609 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") |
607 | add_executable(signertest ${SIGNERTEST_SRC}) | 610 | add_executable(signertest ${SIGNERTEST_SRC}) |