Unable to build latest commit using VS 2022 and cmake 3.31.2
OS: Windows 10
Error: Access is denied

As you can see, I have admin access in vs, and I made sure to use it for console commands as well.
Note the red minus symbols; however, while looking at the properties of each file, I found no indication of anything being disable or excluded.
Used full instructions, including changing build to RelwithDebInfo (I checked, all 4 options have the same result)
Console Steps Output:
Microsoft Windows [Version 10.0.19045.5965]
(c) Microsoft Corporation. All rights reserved.
C:\Windows\system32>cd C:/Users/USER/
C:\Users\USER>cd ./Downloads
C:\Users\USER\Downloads>cd ./github
C:\Users\USER\Downloads\github>git clone https://github.com/cgerikj/binary-greedy-meshing --recursive
Cloning into 'binary-greedy-meshing'...
remote: Enumerating objects: 623, done.
remote: Counting objects: 100% (89/89), done.
remote: Compressing objects: 100% (76/76), done.
remote: Total 623 (delta 31), reused 38 (delta 12), pack-reused 534 (from 1)
Receiving objects: 100% (623/623), 30.39 MiB | 3.86 MiB/s, done.
Resolving deltas: 100% (330/330), done.
Submodule 'libraries/FastNoise' (https://github.com/Auburns/FastNoise) registered for path 'libraries/FastNoise'
Submodule 'libraries/glfw' (https://github.com/glfw/glfw.git) registered for path 'libraries/glfw'
Submodule 'libraries/glm' (https://github.com/g-truc/glm.git) registered for path 'libraries/glm'
Cloning into 'C:/Users/USER/Downloads/github/binary-greedy-meshing/libraries/FastNoise'...
remote: Enumerating objects: 1283, done.
remote: Counting objects: 100% (326/326), done.
remote: Compressing objects: 100% (117/117), done.
remote: Total 1283 (delta 255), reused 209 (delta 209), pack-reused 957 (from 3)
Receiving objects: 100% (1283/1283), 1.93 MiB | 3.45 MiB/s, done.
Resolving deltas: 100% (629/629), done.
Cloning into 'C:/Users/USER/Downloads/github/binary-greedy-meshing/libraries/glfw'...
remote: Enumerating objects: 32422, done.
remote: Total 32422 (delta 0), reused 0 (delta 0), pack-reused 32422 (from 1)
Receiving objects: 100% (32422/32422), 16.21 MiB | 7.93 MiB/s, done.
Resolving deltas: 100% (23039/23039), done.
Cloning into 'C:/Users/USER/Downloads/github/binary-greedy-meshing/libraries/glm'...
remote: Enumerating objects: 59935, done.
remote: Counting objects: 100% (217/217), done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 59935 (delta 170), reused 129 (delta 129), pack-reused 59718 (from 2)
Receiving objects: 100% (59935/59935), 71.37 MiB | 6.48 MiB/s, done.
Resolving deltas: 100% (45405/45405), done.
Submodule path 'libraries/FastNoise': checked out 'faba4443efcd85ad55bf5dd85c8ee458d427d6aa'
Submodule path 'libraries/glfw': checked out 'd973acc123826666ecc9e6fd475682e3d84c54a6'
Submodule path 'libraries/glm': checked out '13724cfae64a8b5313d1cabc9a963d2c9dbeda12'
C:\Users\USER\Downloads\github>cd binary-greedy-meshing
C:\Users\USER\Downloads\github\binary-greedy-meshing>mkdir build && cd build
C:\Users\USER\Downloads\github\binary-greedy-meshing\build>
C:\Users\USER\Downloads\github\binary-greedy-meshing\build>cmake .. -G "Visual Studio 17 2022"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.41.34120.0
-- The CXX compiler identification is MSVC 19.41.34120.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at libraries/glm/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
CMake Deprecation Warning at libraries/glm/CMakeLists.txt:2 (cmake_policy):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
CMake Deprecation Warning at libraries/glfw/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Using Win32 for window creation
-- Configuring done (4.2s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Users/USER/Downloads/github/binary-greedy-meshing/build
C:\Users\USER\Downloads\github\binary-greedy-meshing\build>start binaryMesher.sln
C:\Users\USER\Downloads\github\binary-greedy-meshing\build>
VS Build Output:
Rebuild started at 2:06 AM...
1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: RelWithDebInfo x64 ------
1>1>Checking Build System
2>------ Skipped Rebuild All: Project: uninstall, Configuration: RelWithDebInfo x64 ------
2>Project not selected to build for this solution configuration
3>------ Rebuild All started: Project: glfw, Configuration: RelWithDebInfo x64 ------
4>------ Rebuild All started: Project: glad, Configuration: RelWithDebInfo x64 ------
3>Building Custom Rule C:/Users/USER/Downloads/github/binary-greedy-meshing/libraries/glfw/src/CMakeLists.txt
4>Building Custom Rule C:/Users/USER/Downloads/github/binary-greedy-meshing/CMakeLists.txt
3>context.c
4>glad.c
3>init.c
3>input.c
4>glad.vcxproj -> C:\Users\USER\Downloads\github\binary-greedy-meshing\build\RelWithDebInfo\glad.lib
3>monitor.c
3>vulkan.c
3>window.c
3>win32_init.c
3>win32_joystick.c
3>win32_monitor.c
3>win32_time.c
3>win32_thread.c
3>win32_window.c
3>wgl_context.c
3>egl_context.c
3>osmesa_context.c
3>Generating Code...
3>glfw.vcxproj -> C:\Users\USER\Downloads\github\binary-greedy-meshing\build\libraries\glfw\src\RelWithDebInfo\glfw3.lib
5>------ Rebuild All started: Project: client, Configuration: RelWithDebInfo x64 ------
5>Building Custom Rule C:/Users/USER/Downloads/github/binary-greedy-meshing/CMakeLists.txt
5>main.cpp
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(1,9): warning C4005: 'GLFW_INCLUDE_NONE': macro redefinition
5> C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(1,9):
5> 'GLFW_INCLUDE_NONE' previously declared on the command line
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(12,25): warning C4305: 'argument': truncation from 'double' to 'FN_DECIMAL'
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(17,25): warning C4305: 'argument': truncation from 'double' to 'FN_DECIMAL'
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(29,56): warning C4244: 'argument': conversion from 'int' to 'FN_DECIMAL', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(29,53): warning C4244: 'argument': conversion from 'int' to 'FN_DECIMAL', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(29,50): warning C4244: 'argument': conversion from 'int' to 'FN_DECIMAL', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(57,87): warning C4244: 'argument': conversion from 'int' to 'FN_DECIMAL', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(57,69): warning C4244: 'argument': conversion from 'int' to 'FN_DECIMAL', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(57,64): warning C4244: 'argument': conversion from 'int' to 'FN_DECIMAL', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(90,57): warning C4244: 'argument': conversion from 'int' to 'FN_DECIMAL', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(90,54): warning C4244: 'argument': conversion from 'int' to 'FN_DECIMAL', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\misc\noise.h(90,51): warning C4244: 'argument': conversion from 'int' to 'FN_DECIMAL', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\rendering\chunk_renderer.h(8,32): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\rendering\chunk_renderer.h(44,28): warning C4018: '<': signed/unsigned mismatch
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\rendering\chunk_renderer.h(148,21): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\data\rle.h(77,21): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\data\rle.h(79,60): warning C4309: 'argument': truncation of constant value
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\data\level_file.h(41,26): warning C4244: 'initializing': conversion from 'double' to 'uint32_t', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\data\level_file.h(90,37): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\mesher.h(177,36): warning C4244: 'initializing': conversion from 'unsigned long' to 'uint8_t', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\mesher.h(177,34): warning C4244: 'initializing': conversion from 'unsigned long' to 'const uint8_t', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\mesher.h(253,45): warning C4244: 'initializing': conversion from 'unsigned long' to 'uint8_t', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\mesher.h(253,32): warning C4244: 'initializing': conversion from 'unsigned long' to 'const uint8_t', possible loss of data
5>(compiling source file '../src/main.cpp')
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(151,54): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(151,37): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(152,12): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(153,12): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(425,12): warning C4129: ' ': unrecognized character escape sequence
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(426,12): warning C4129: ' ': unrecognized character escape sequence
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(427,12): warning C4129: ' ': unrecognized character escape sequence
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(437,28): warning C4018: '<': signed/unsigned mismatch
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(438,30): warning C4018: '<': signed/unsigned mismatch
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(469,24): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
5>C:\Users\USER\Downloads\github\binary-greedy-meshing\src\main.cpp(470,30): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
5>FastNoise.cpp
5>Generating Code...
5>client.vcxproj -> C:\Users\USER\Downloads\github\binary-greedy-meshing\build\RelWithDebInfo\client.exe
5>Done building project "client.vcxproj".
6>------ Rebuild All started: Project: ALL_BUILD, Configuration: RelWithDebInfo x64 ------
6>Building Custom Rule C:/Users/USER/Downloads/github/binary-greedy-meshing/CMakeLists.txt
7>------ Skipped Rebuild All: Project: INSTALL, Configuration: RelWithDebInfo x64 ------
7>Project not selected to build for this solution configuration
========== Rebuild All: 5 succeeded, 0 failed, 2 skipped ==========
========== Rebuild completed at 2:06 AM and took 05.937 seconds ==========
Unable to build latest commit using VS 2022 and cmake 3.31.2
OS: Windows 10
Error: Access is denied
As you can see, I have admin access in vs, and I made sure to use it for console commands as well.
Note the red minus symbols; however, while looking at the properties of each file, I found no indication of anything being disable or excluded.
Used full instructions, including changing build to RelwithDebInfo (I checked, all 4 options have the same result)
Console Steps Output:
VS Build Output: