From aaa76310cd2aae3672cbf88995208fead3baec53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Mon, 9 Jul 2018 18:16:28 -0400 Subject: [PATCH] cmake: Only install Windows headers in win subdir --- CMakeLists.txt | 1 - srtcore/platform_sys.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56b9f2548..f9d89818d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -432,7 +432,6 @@ endif() # will now apply to the dependent library. #list(APPEND SOURCES_srt ${SOURCES_haicrypt}) set (VIRTUAL_srt $ $) -set (HEADERS_srt ${HEADERS_srt} ${HEADERS_srt_win32}) if (srt_libspec_shared) add_library(${TARGET_srt}_shared SHARED ${VIRTUAL_srt}) diff --git a/srtcore/platform_sys.h b/srtcore/platform_sys.h index ce546d212..e8e69271f 100644 --- a/srtcore/platform_sys.h +++ b/srtcore/platform_sys.h @@ -15,9 +15,9 @@ #include #include #include - #include #if defined(_MSC_VER) - #include + #include + #include #pragma warning(disable:4251) #endif #else