WATCOM_RUNTIME_LIBRARY.rst 990 B

12345678910111213141516171819202122232425262728293031323334
  1. WATCOM_RUNTIME_LIBRARY
  2. ----------------------
  3. .. versionadded:: 3.24
  4. Select the Watcom runtime library for use by compilers targeting the Watcom ABI.
  5. The allowed values are:
  6. .. include:: WATCOM_RUNTIME_LIBRARY-VALUES.txt
  7. Use :manual:`generator expressions <cmake-generator-expressions(7)>` to
  8. support per-configuration specification.
  9. For example, the code:
  10. .. code-block:: cmake
  11. add_executable(foo foo.c)
  12. set_property(TARGET foo PROPERTY
  13. WATCOM_RUNTIME_LIBRARY "MultiThreaded")
  14. selects for the target ``foo`` a multi-threaded statically-linked runtime
  15. library.
  16. If this property is not set then CMake uses the default value
  17. ``MultiThreadedDLL`` on Windows and ``SingleThreaded`` on other
  18. platforms to select a Watcom runtime library.
  19. .. note::
  20. This property has effect only when policy :policy:`CMP0136` is set to ``NEW``
  21. prior to the first :command:`project` or :command:`enable_language` command
  22. that enables a language using a compiler targeting the Watcom ABI.