diff options
Diffstat (limited to 'apps/openssl/CMakeLists.txt')
-rw-r--r-- | apps/openssl/CMakeLists.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/apps/openssl/CMakeLists.txt b/apps/openssl/CMakeLists.txt index 437c0db..efea217 100644 --- a/apps/openssl/CMakeLists.txt +++ b/apps/openssl/CMakeLists.txt | |||
@@ -61,15 +61,20 @@ if(WIN32) | |||
61 | endif() | 61 | endif() |
62 | 62 | ||
63 | if(CMAKE_SYSTEM_NAME MATCHES "Darwin") | 63 | if(CMAKE_SYSTEM_NAME MATCHES "Darwin") |
64 | check_function_exists(clock_gettime HAVE_CLOCK_GETTIME) | 64 | check_function_exists(clock_gettime HAVE_CLOCK_GETTIME) |
65 | if(NOT HAVE_CLOCK_GETTIME) | 65 | if(NOT HAVE_CLOCK_GETTIME) |
66 | set(OPENSSL_SRC ${OPENSSL_SRC} compat/clock_gettime_osx.c) | 66 | set(OPENSSL_SRC ${OPENSSL_SRC} compat/clock_gettime_osx.c) |
67 | endif() | 67 | endif() |
68 | endif() | 68 | endif() |
69 | 69 | ||
70 | add_executable(openssl ${OPENSSL_SRC}) | 70 | add_executable(openssl ${OPENSSL_SRC}) |
71 | target_include_directories(openssl PUBLIC ../../include) | 71 | target_include_directories(openssl |
72 | target_include_directories(openssl PRIVATE . ../../include/compat) | 72 | PRIVATE |
73 | . | ||
74 | ../../include/compat | ||
75 | PUBLIC | ||
76 | ../../include | ||
77 | ${CMAKE_BINARY_DIR}/include) | ||
73 | target_link_libraries(openssl ${OPENSSL_LIBS}) | 78 | target_link_libraries(openssl ${OPENSSL_LIBS}) |
74 | 79 | ||
75 | if(ENABLE_LIBRESSL_INSTALL) | 80 | if(ENABLE_LIBRESSL_INSTALL) |