From ab6f0b51b110dabfeed231f9c5ed9e816f480335 Mon Sep 17 00:00:00 2001 From: Fred Baksik Date: Mon, 15 Nov 2021 13:15:12 -0500 Subject: 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. --- Help/generator/Green Hills MULTI.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Help/generator/Green Hills MULTI.rst b/Help/generator/Green Hills MULTI.rst index 472f725..1b4739b 100644 --- a/Help/generator/Green Hills MULTI.rst +++ b/Help/generator/Green Hills MULTI.rst @@ -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 ^^^^^^^^^^^^^^^^^^^^ -- cgit v0.12