frang75 / nappgui_src

SDK for building cross-platform desktop apps in ANSI-C
https://www.nappgui.com
MIT License
442 stars 43 forks source link

CMake throws up on Windows #118

Open alex-s168 opened 1 month ago

alex-s168 commented 1 month ago

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

frang75 commented 1 month ago

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

alex-s168 commented 1 month ago
>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