Author: brane
Date: Wed Jul 16 09:17:19 2025
New Revision: 1927264
URL: http://svn.apache.org/viewvc?rev=1927264&view=rev
Log:
Fix building of the MockHTTPinC library. We magically inherited the
OpenSSL include paths from apr-util, so everything breaks down if
apr-util doesn't support apr-crypto.
* test/MockHTTPinC/CMakeLists.txt
(mockhttpinc): Remove target_include_directories. Instead, use the same
target_link_libraries as the Serf static lib. This exposes the OpenSSL
include paths directly from the configured target instead of hoping that
apr-util was build with crypto support.
Modified:
serf/trunk/test/MockHTTPinC/CMakeLists.txt
Modified: serf/trunk/test/MockHTTPinC/CMakeLists.txt
URL:
http://svn.apache.org/viewvc/serf/trunk/test/MockHTTPinC/CMakeLists.txt?rev=1927264&r1=1927263&r2=1927264&view=diff
==============================================================================
--- serf/trunk/test/MockHTTPinC/CMakeLists.txt (original)
+++ serf/trunk/test/MockHTTPinC/CMakeLists.txt Wed Jul 16 09:17:19 2025
@@ -56,5 +56,7 @@ target_compile_options(mockhttpinc
target_compile_definitions(mockhttpinc
PUBLIC "MOCKHTTP_OPENSSL"
PRIVATE ${MockHTTPinC_DEFINES})
-target_include_directories(mockhttpinc SYSTEM BEFORE
- PRIVATE ${APR_INCLUDES} ${APRUTIL_INCLUDES})
+target_link_libraries(mockhttpinc
+ ${SERF_PRIVATE_TARGETS}
+ ${SERF_PUBLIC_TARGETS}
+ ${SERF_STANDARD_LIBRARIES})