embeddedsw icon indicating copy to clipboard operation
embeddedsw copied to clipboard

Vitis 2024.2: CMake Policy CMP0010 is not set: Bad variable reference syntax is an error.

Open digitalnumeric opened this issue 1 year ago • 1 comments

We are trying to create our Vitis 2023.2 project in Vitis 2024.2 and noticed the CMake policy issues below printed out over and over.

See also associated forum post: https://adaptivesupport.amd.com/s/question/0D54U00008uNPhLSAW/cmake-policy-cmp0010-is-not-set-bad-variable-reference-syntax-is-an-error

` Call Stack (most recent call first): cmake_install.cmake:62 (include) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at libsrc/freertos10_xilinx/src/cmake_install.cmake:61 (file): Syntax error in cmake code at

C:/Projects/ABCD/MPSoC/XCK26/KR260/SA_FRTOS_BSP/SW/ABCD_platform/psu_cortexa53_2/freertos_psu_cortexa53_2/bsp/libsrc/build_configs/gen_bsp/libsrc/freertos10_xilinx/src/cmake_install.cmake:61

when parsing string

C:\Projects\ABCD\MPSoC\XCK26\KR260\SA_FRTOS_BSP\SW\ABCD_platform\psu_cortexa53_2\freertos_psu_cortexa53_2\bsp\include/..

Invalid escape sequence \P

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. Call Stack (most recent call first): cmake_install.cmake:62 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Installing: C:/Projects/ABCD/MPSoC/XCK26/KR260/SA_FRTOS_BSP/SW/ABCD_platform/psu_cortexa53_3/freertos_psu_cortexa53_3/bsp/lib/libfreertos.a CMake Warning (dev) at libsrc/freertos10_xilinx/src/cmake_install.cmake:53 (list): Syntax error in cmake code at

C:/Projects/ABCD/MPSoC/XCK26/KR260/SA_FRTOS_BSP/SW/ABCD_platform/psu_cortexa53_3/freertos_psu_cortexa53_3/bsp/libsrc/build_configs/gen_bsp/libsrc/freertos10_xilinx/src/cmake_install.cmake:54

when parsing string

C:\Projects\ABCD\MPSoC\XCK26\KR260\SA_FRTOS_BSP\SW\ABCD_platform\psu_cortexa53_3\freertos_psu_cortexa53_3\bsp\include/../include

Invalid escape sequence \P

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. Call Stack (most recent call first): cmake_install.cmake:62 (include) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at libsrc/freertos10_xilinx/src/cmake_install.cmake:61 (file): Syntax error in cmake code at

C:/Projects/ABCD/MPSoC/XCK26/KR260/SA_FRTOS_BSP/SW/ABCD_platform/psu_cortexa53_3/freertos_psu_cortexa53_3/bsp/libsrc/build_configs/gen_bsp/libsrc/freertos10_xilinx/src/cmake_install.cmake:61

when parsing string

C:\Projects\ABCD\MPSoC\XCK26\KR260\SA_FRTOS_BSP\SW\ABCD_platform\psu_cortexa53_3\freertos_psu_cortexa53_3\bsp\include/..

Invalid escape sequence \P

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. Call Stack (most recent call first): cmake_install.cmake:62 (include) This warning is for project developers. Use -Wno-dev to suppress it. `

digitalnumeric avatar Dec 19 '24 15:12 digitalnumeric

Thank you for reporting this. I have forwarded this to relevant stakeholders and will get back on this thread very soon.

anirudha1977 avatar Dec 19 '24 15:12 anirudha1977