Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5b4569f

Browse files
authored
Update build_and_install.md
1 parent73db5a1 commit5b4569f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎docs/build_and_install.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ You can define (via -D command line CMake option) the following build flags:
138138

139139
-**JINJA2CPP_BUILD_TESTS** (default TRUE) - to build or not to Jinja2C++ tests.
140140
-**JINJA2CPP_STRICT_WARNINGS** (default TRUE) - Enable strict mode compile-warnings(-Wall -Werror and etc).
141-
-**MSVC_RUNTIME_TYPE** (default /MD) - MSVC runtime type to link with (if you use Microsoft Visual Studio compiler).
141+
-**JINJA2CPP_MSVC_RUNTIME_TYPE** (default /MD) - MSVC runtime type to link with (if you use Microsoft Visual Studio compiler)._Notice_: You don't need to add`d` suffix which means`Debug` version of runtime. Suffix is added automatically.
142+
-**JINJA2CPP_BUILD_SHARED** (default FALSE) - to build shared version of Jinja2C++ libraries
142143

143144
##Link with you projects
144145
Jinja2C++ is a CMake project and follow the standard ways of the CMake project`find` script implementation. So, you can either include Jinja2C++ as a subproject of your project. In this case you should link against`jinja2cpp` target. All necessary settings are already associated with this target. For instance:
@@ -173,6 +174,7 @@ cmake --build . --target install
173174
cmake .. -DCMAKE_BUILD_TYPE=Release -Djinja2cpp_DIR=../.jinja2cpp-install/lib/jinja2cpp
174175
```
175176
3. In the CMake script of your project you should find Jinja2C++ with the`find_package` invocation:
177+
176178
```cmake
177179
cmake_minimum_required (VERSION 3.0.0 FATAL_ERROR)
178180
project (Jinja2CppBuildTest CXX)
@@ -188,5 +190,6 @@ target_link_libraries (${TARGET_NAME} jinja2cpp)
188190
set_target_properties (${TARGET_NAME} PROPERTIES
189191
CXX_STANDARD 14
190192
CXX_STANDARD_REQUIRED ON)
193+
191194
```
192195

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp