소스 검색

Help: Provide cross-references between compiler settings

Joachim Wuttke (h) 5 년 전
부모
커밋
448e2d7a9d
3개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      Help/command/add_compile_options.rst
  2. 2 0
      Help/command/target_compile_options.rst
  3. 5 0
      Help/prop_sf/COMPILE_OPTIONS.rst

+ 3 - 0
Help/command/add_compile_options.rst

@@ -46,3 +46,6 @@ to use the more specific commands :command:`add_compile_definitions`
 and :command:`include_directories`.
 
 The command :command:`target_compile_options` adds target-specific options.
+
+The source file property :prop_sf:`COMPILE_OPTIONS` adds options to one
+source file.

+ 2 - 0
Help/command/target_compile_options.rst

@@ -46,3 +46,5 @@ to use the more specific commands :command:`target_compile_definitions`
 and :command:`target_include_directories`.
 
 For directory-wide settings, there is the command :command:`add_compile_options`.
+
+For file-specific settings, there is the source file property :prop_sf:`COMPILE_OPTIONS`.

+ 5 - 0
Help/prop_sf/COMPILE_OPTIONS.rst

@@ -25,3 +25,8 @@ Related properties:
 * Prefer this property over :prop_sf:`COMPILE_FLAGS`.
 * Use :prop_sf:`COMPILE_DEFINITIONS` to pass additional preprocessor definitions.
 * Use :prop_sf:`INCLUDE_DIRECTORIES` to pass additional include directories.
+
+Related commands:
+
+* :command:`add_compile_options` for directory-wide settings
+* :command:`target_compile_options` for target-specific settings