Skip to content

Commit 3615cca

Browse files
committed
Document msvc-runtime feature
1 parent 73622aa commit 3615cca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/cmake-toml.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ name = "myproject"
2727
version = "1.0.0"
2828
description = "Description of the project"
2929
languages = ["C", "CXX"]
30+
msvc-runtime = "" # dynamic (implicit default), static
3031
cmake-before = """
3132
message(STATUS "CMake injected before the project() call")
3233
"""
@@ -58,6 +59,8 @@ sources = ["src/main.cpp"]
5859
windows.sources = ["src/windows_specific.cpp"]
5960
```
6061

62+
### Predefined conditions
63+
6164
The following conditions are predefined (you can override them if you desire):
6265

6366
```toml
@@ -144,6 +147,7 @@ alias = "mytarget::mytarget"
144147
type = "static" # executable, shared (DLL), static, interface, object, library, custom
145148
headers = ["src/mytarget.h"]
146149
sources = ["src/mytarget.cpp"]
150+
msvc-runtime = "" # dynamic (implicit default), static
147151

148152
# The keys below match the target_xxx CMake commands
149153
# Keys prefixed with private- will get PRIVATE visibility

0 commit comments

Comments
 (0)