diff --git a/Code/Libs/SimpleWebServer/CMakeLists.txt b/Code/Libs/SimpleWebServer/CMakeLists.txt index 0389d1d0..8eb4b872 100644 --- a/Code/Libs/SimpleWebServer/CMakeLists.txt +++ b/Code/Libs/SimpleWebServer/CMakeLists.txt @@ -31,7 +31,6 @@ if(SIMPLEWEB_SSL) if(NOT ODC_ASIO_SSL) message(FATAL_ERROR "SIMPLEWEB_SSL requires ODC_ASIO_SSL. Enable that option first") endif() - add_definitions(-DUSE_HTTPS) endif() if(USE_SIMPLEWEB_SUBMODULE) @@ -60,3 +59,6 @@ mark_as_advanced(FORCE USE_OPENSSL) mark_as_advanced(FORCE USE_STANDALONE_ASIO) target_include_directories(simple-web-server INTERFACE include) +if(SIMPLEWEB_SSL) + target_compile_definitions(simple-web-server INTERFACE USE_HTTPS) +endif()