nappgui_src icon indicating copy to clipboard operation
nappgui_src copied to clipboard

CMake throws up on Windows

Open alex-s168 opened this issue 1 year ago • 2 comments

It complains about there begin backslashes in line 40 in cmake_install.cmake I fixed it by removing like 16 from NAppGenerateTools.cmake

alex-s168 avatar Mar 20 '24 14:03 alex-s168

Hi @alex-s168 Please provide more context. Version of Windows, version of Visual Studio, version of CMake and logs.

frang75 avatar Mar 21 '24 15:03 frang75

>cmake --install build --config Release --prefix C:/nappgui 
-- Up-to-date: C:/nappgui/inc/nappgui.h
CMake Warning (dev) at build/cmake_install.cmake:40 (file):
  Syntax error in cmake code at

    C:/Users/Alexander.Nutz/EmDaemonNewNewNew/nappgui_src/build/cmake_install.cmake:40

  when parsing string

    C:\Users\Alexander.Nutz\EmDaemonNewNewNew\nappgui_src\build\tools\build\Debug\bin\nrc.exe

  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 warning is for project developers.  Use -Wno-dev to suppress it.

It uses some VS version don't know which one exactly

> cmake --version
cmake version 3.29.0-rc1

alex-s168 avatar Mar 22 '24 07:03 alex-s168

Fixed in this commit: https://github.com/frang75/nappgui_src/commit/cda8a3fccf101ecae03a383fd481517518d70075 Thanks for reporting.

frang75 avatar May 21 '24 17:05 frang75