nappgui_src icon indicating copy to clipboard operation
nappgui_src copied to clipboard

Support white spaces in project path

Open SamSandq opened this issue 11 months ago • 1 comments

I wanted to added some resource images to my application, and proceeded as the documentation says:

  • added a directory under .../res/, giving .../res/res_images
  • changed the CMakeLists.txt file in the main project directory to
nap_desktop_app(Funtus "" NRC_EMBEDDED)
target_link_libraries(Funtus ${NAPPGUI_LIBRARIES} "-l sqlite3")
  • and ran cmake -G Xcode -S . -B build -DCMAKE_INSTALL_PREFIX=/Users/sam/nappgui

This FAILED with the following error:

Screenshot 2024-03-03 at 9 07 30

I was mystified, but had a hunch that it didn't properly find my files. And... I changed my source directory from nappgui projectsto nappgui_projects. The result was the following:

Screenshot 2024-03-03 at 9 27 17

In other words, either CMake or nrc does not allow spaces in directory names!

Please ascertain which, and correct.

SamSandq avatar Mar 03 '24 07:03 SamSandq

NAppGUI projects have never been tested with whitespaces or Unicode characters in path.

frang75 avatar Mar 04 '24 21:03 frang75