diff options
| -rw-r--r-- | apps/openssl/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/openssl/CMakeLists.txt b/apps/openssl/CMakeLists.txt index db63ecf..6d89c06 100644 --- a/apps/openssl/CMakeLists.txt +++ b/apps/openssl/CMakeLists.txt | |||
| @@ -67,6 +67,13 @@ else() | |||
| 67 | set(OPENSSL_SRC ${OPENSSL_SRC} compat/strtonum.c) | 67 | set(OPENSSL_SRC ${OPENSSL_SRC} compat/strtonum.c) |
| 68 | endif() | 68 | endif() |
| 69 | 69 | ||
| 70 | if(CMAKE_SYSTEM_NAME MATCHES "Darwin") | ||
| 71 | check_function_exists(clock_gettime HAVE_CLOCK_GETTIME) | ||
| 72 | if(NOT HAVE_CLOCK_GETTIME) | ||
| 73 | set(OPENSSL_SRC ${OPENSSL_SRC} compat/clock_gettime_osx.c) | ||
| 74 | endif() | ||
| 75 | endif() | ||
| 76 | |||
| 70 | add_executable(openssl ${OPENSSL_SRC}) | 77 | add_executable(openssl ${OPENSSL_SRC}) |
| 71 | target_include_directories(openssl PRIVATE . ../../include/compat) | 78 | target_include_directories(openssl PRIVATE . ../../include/compat) |
| 72 | target_link_libraries(openssl ${OPENSSL_LIBS}) | 79 | target_link_libraries(openssl ${OPENSSL_LIBS}) |
