From 3615ccab94e973a6135e19f658f4a18de9d3b275 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Fri, 7 Oct 2022 22:15:32 +0200 Subject: [PATCH] Document msvc-runtime feature --- docs/cmake-toml.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/cmake-toml.md b/docs/cmake-toml.md index 82a832d..86a6b4a 100644 --- a/docs/cmake-toml.md +++ b/docs/cmake-toml.md @@ -27,6 +27,7 @@ name = "myproject" version = "1.0.0" description = "Description of the project" languages = ["C", "CXX"] +msvc-runtime = "" # dynamic (implicit default), static cmake-before = """ message(STATUS "CMake injected before the project() call") """ @@ -58,6 +59,8 @@ sources = ["src/main.cpp"] windows.sources = ["src/windows_specific.cpp"] ``` +### Predefined conditions + The following conditions are predefined (you can override them if you desire): ```toml @@ -144,6 +147,7 @@ alias = "mytarget::mytarget" type = "static" # executable, shared (DLL), static, interface, object, library, custom headers = ["src/mytarget.h"] sources = ["src/mytarget.cpp"] +msvc-runtime = "" # dynamic (implicit default), static # The keys below match the target_xxx CMake commands # Keys prefixed with private- will get PRIVATE visibility