I am compiling a project. During the project i get the error setlocal if %errorlevel% neq 0 goto :cmEnd i researched the error and it seems the error is related to read-write rights. I learned that it could be fixed using cmake_install_prefix value or by disabling UAC. I disabled UAC and made the program files (x86)'s owner my user. The problem didnt get fixed. Later than I tried to change the CMAKE_INSTALL_PREFIX but i probably failed setting a value to it. After i initialize cmake, cmakeCache.txt shows that the path is still in program files
CMAKE_INSTALL_PREFIX:PATH=C:/Program Files/xmrig
I use this code before project name
set (CMAKE_INSTALL_PREFIX:PATH "C:/Users/USERNAME/Desktop/memoryModule/xmrig-master/xmrigReal" FORCE)
also i tried this
set (CMAKE_INSTALL_PREFIX "C:/Users/USERNAME/Desktop/memoryModule/xmrig-master/xmrigReal" FORCE)
i still get the path as program files and i get the setlocal error. what could be the reason?
I also use -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE if i dont use it there is no error but i need this.
if i put CMAKE_INSTALL_PREFIX="C:/Users/USERNAME/Desktop/memoryModule/path/xm" it returns the error from the cli
The source directory "C:/Users/USERNAME/Desktop/memoryModule/path/xm/CMAKE_INSTALL_PREFIX=C:/Users/USERNAME/Desktop/memoryModule/path/xm" does not exist
please help me compile it