mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
GHS: Add note about -T and path style
If backslashes are used for CMAKE_GENERATOR_TOOLSET, then ctest
processing will complain about COMP0010.
For example:
Syntax error in cmake code at
C:/Users/XXX/test_bld/Tests/CTestTestfile.cmake:253
when parsing string
C:\Users\XXX\bin_tools\XXX
Invalid escape sequence \U
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This commit is contained in:
@@ -69,13 +69,16 @@ For example, setting a specific compiler:
|
||||
* ``cmake -G "Green Hills MULTI" -T comp_201754`` for ``/usr/ghs/comp_201754``.
|
||||
* ``cmake -G "Green Hills MULTI" -T comp_201754 -D GHS_TOOLSET_ROOT=/opt/ghs`` for ``/opt/ghs/comp_201754``.
|
||||
* ``cmake -G "Green Hills MULTI" -T /usr/ghs/comp_201554``
|
||||
* ``cmake -G "Green Hills MULTI" -T C:\ghs\comp_201754``
|
||||
* ``cmake -G "Green Hills MULTI" -T C:/ghs/comp_201754``
|
||||
|
||||
For example, searching for latest compiler:
|
||||
|
||||
* ``cmake -G "Green Hills MULTI"`` for searching ``/usr/ghs``.
|
||||
* ``cmake -G "Green Hills MULTI -D GHS_TOOLSET_ROOT=/opt/ghs"`` for searching ``/opt/ghs``.
|
||||
|
||||
.. note::
|
||||
The :variable:`CMAKE_GENERATOR_TOOLSET` should use CMake style paths.
|
||||
|
||||
OS and BSP Selection
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user