From 6e23861b7463a1def1ee0511f7bb75ee21367ef9 Mon Sep 17 00:00:00 2001 From: talregev Date: Mon, 14 Oct 2024 18:46:54 +0300 Subject: [PATCH] simplify export include dir cmake code (#4575) --- src/bin/CMakeLists.txt | 14 -------------- src/inc/CMakeLists.txt | 4 +++- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt index 4c537a1641..16cef4e31e 100644 --- a/src/bin/CMakeLists.txt +++ b/src/bin/CMakeLists.txt @@ -251,20 +251,6 @@ elseif (CX_PLATFORM STREQUAL "darwin") endif() include(GNUInstallDirs) -set(include_dest ${CMAKE_INSTALL_INCLUDEDIR}) - -if(BUILD_SHARED_LIBS) - target_include_directories(msquic PUBLIC - $ - $) -else() - target_include_directories(msquic_static INTERFACE - $ - $) - target_include_directories(msquic INTERFACE - $ - $) -endif() file(GLOB PUBLIC_HEADERS "../inc/*.h" "../inc/*.hpp") diff --git a/src/inc/CMakeLists.txt b/src/inc/CMakeLists.txt index 94daef9a66..dde47b8252 100644 --- a/src/inc/CMakeLists.txt +++ b/src/inc/CMakeLists.txt @@ -9,7 +9,9 @@ target_compile_options(inc INTERFACE ${QUIC_C_FLAGS}) target_compile_options(inc INTERFACE $<$:${QUIC_CXX_FLAGS}>) target_compile_definitions(inc INTERFACE ${QUIC_COMMON_DEFINES}) -target_include_directories(inc INTERFACE ${QUIC_INCLUDE_DIR}) +target_include_directories(inc INTERFACE + $ + $) target_compile_features(inc INTERFACE cxx_std_17) target_compile_features(inc INTERFACE c_std_11)