Merge pull request #55 from lian999111/compile-flags-typo

Fix typo
This commit is contained in:
Thom Troy
2021-01-10 09:32:45 +00:00
committed by GitHub

View File

@@ -39,7 +39,7 @@ target_compile_definitions(cmake_examples_compile_flags
This will cause the compiler to add the definition +-DEX3+ when compiling the target. This will cause the compiler to add the definition +-DEX3+ when compiling the target.
In the target was a library, and the scope +PUBLIC+ or +INTERFACE+ has been chosen the definition would also be included in any executables that link this target. If the target was a library and the scope +PUBLIC+ or +INTERFACE+ has been chosen the definition would also be included in any executables that link this target.
For compiler options you can also use the +target_compile_options()+ link:https://cmake.org/cmake/help/v3.0/command/target_compile_options.html[function]. For compiler options you can also use the +target_compile_options()+ link:https://cmake.org/cmake/help/v3.0/command/target_compile_options.html[function].