You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/setup/setting_up_osi_cpp.adoc
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,15 @@ Especially for building on Windows, the use of **vcpkg** to handle dependencies
30
30
31
31
Prerequisites::
32
32
* The environment variable `VCPKG_ROOT` must be set to the root of your vcpkg installation.
33
-
* For Windows static linking, the static-md triplet is recommended (see also <<static_dynamic_linking, Static/Dynamic Linking>> explained below)
33
+
* For Windows static linking, the static-md triplet is recommended (see also <<static_dynamic_linking, Static/Dynamic Linking>> explained below). This is offered via the `vcpkg-windows` CMake preset.
34
+
* For other platforms, you can use the `vcpkg` CMake preset for building.
35
+
34
36
35
37
Steps::
36
-
. Configure the build using the vcpkg preset:
38
+
. Configure the build using the `vcpkg` or `vcpkg-windows` preset:
37
39
+
38
40
----
39
-
cmake --preset default
41
+
cmake --preset vcpkg # or vcpkg-windows
40
42
----
41
43
. Perform the build:
42
44
+
@@ -49,15 +51,21 @@ cmake --build build
49
51
50
52
To build without vcpkg, you must ensure necessary prerequisites are installed and detectable by CMake. It is then usually enough to include the `osi-cpp` repository in your main `CMakeLists.txt`:
Static linking is the recommended way to package OSI FMUs for sharing with others to be integrated in a co-simulation: They should have minimal external dependencies in order to ensure maximum portability. For other use cases dynamic linking could be an option and is thus explained below.
66
+
Static linking is the recommended way to package OSI FMUs for sharing with others to be integrated in a co-simulation:
67
+
They should have minimal external dependencies in order to ensure maximum portability.
68
+
For other use cases dynamic linking could be an option and is thus explained below.
0 commit comments