diff options
| author | Brent Cook <busterb@gmail.com> | 2023-07-03 19:00:12 +0300 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-07-03 19:00:12 +0300 |
| commit | 7179a01c454a997ad884cba3d2cd1804989c6adc (patch) | |
| tree | ad49b6cdc3fbc3e07803a467476b5b384d4fc897 | |
| parent | 33b2c49c9bde6aff3f8c460e46007fd9301e1dbf (diff) | |
| download | portable-7179a01c454a997ad884cba3d2cd1804989c6adc.tar.gz portable-7179a01c454a997ad884cba3d2cd1804989c6adc.tar.bz2 portable-7179a01c454a997ad884cba3d2cd1804989c6adc.zip | |
flip logic around
| -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}) |
