From 07e7201d5a66edb203d7335914832d29fac36bd4 Mon Sep 17 00:00:00 2001 From: Michel Promonet Date: Mon, 15 May 2023 21:11:44 +0200 Subject: [PATCH] export compile options --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bcb6ba..5951a05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,13 +92,13 @@ else() if (NOT OpenSSL_FOUND) set(LIVE555CFLAGS ${LIVE555CFLAGS} -DNO_OPENSSL=1) endif() - add_definitions(${LIVE555CFLAGS}) endif() # librtsp aux_source_directory(src LIBV4L2RTSP_SRC_FILES) add_library (libv4l2rtspserver STATIC ${LIVESOURCE} ${LIBV4L2RTSP_SRC_FILES}) target_include_directories(libv4l2rtspserver PUBLIC inc ${LIVEINCLUDE}) +target_compile_definitions(libv4l2rtspserver PUBLIC ${LIVE555CFLAGS}) target_link_libraries (${PROJECT_NAME} libv4l2rtspserver ${LIVE_LIBRARIES}) if (OpenSSL_FOUND) target_link_libraries(${PROJECT_NAME} OpenSSL::SSL)