1626: Actually add crypto includes to the target r=def- a=Learath2

Seems like an oversight.

I'm guessing it compiled fine on most configurations because openssl include directory ends up being in `/usr/include` but on macOS when installed with brew/macports the directory ends up in `/usr/local/include`.

Co-authored-by: Learath <learath2@gmail.com>
This commit is contained in:
bors[bot] 2019-04-11 20:13:17 +00:00
commit 32551d2485

View file

@ -1612,6 +1612,7 @@ foreach(target ${TARGETS_OWN})
target_compile_definitions(${target} PRIVATE GLEW_STATIC)
if(CRYPTO_FOUND)
target_compile_definitions(${target} PRIVATE CONF_OPENSSL)
target_include_directories(${target} PRIVATE ${CRYPTO_INCLUDE_DIRS})
endif()
if(WEBSOCKETS)
target_compile_definitions(${target} PRIVATE CONF_WEBSOCKETS)