From b0b4dd7b3a049bfdf8aeca005bdba151678948d8 Mon Sep 17 00:00:00 2001 From: gongluck <1039994845@qq.com> Date: Thu, 4 Nov 2021 14:11:45 +0800 Subject: [PATCH] Enables CMAKE_MSVC_RUNTIME_LIBRARY option support for CMake >= 3.15 use cmake_policy(SET CMP0091 NEW) to Enables CMAKE_MSVC_RUNTIME_LIBRARY option support for CMake >= 3.15. --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff93c52e..89a39265 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,16 @@ cmake_minimum_required (VERSION 3.3.2) +## Enables CMAKE_MSVC_RUNTIME_LIBRARY option support for CMake >= 3.15 +## if you want to use a MSVC multi-threaded statically-linked runtime library +## If you enable it, CMake will build fdk-acc.dll without external dependencies. +## +## Example usage: +## +## cmake .. -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$:Debug> +if(POLICY CMP0091) + cmake_policy(SET CMP0091 NEW) +endif() + project (libde265 LANGUAGES C CXX VERSION 1.0.8