implement cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug all outputs
F:\Cesium001>cd cesium-unity-samples/Packages/com.cesium.unity/native~
F:\Cesium001\cesium-unity-samples\Packages\com.cesium.unity\native~>cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug
-- Building for: Visual Studio 17 2022
-- The CXX compiler identification is MSVC 19.37.32822.0
-- The C compiler identification is MSVC 19.37.32822.0
-- 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.37.32822/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 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.37.32822/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:26 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
-> TIDY_SO_VERSION = 59. This is an ODD (development) release.
CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:96 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'BUILD_SHARED_LIB'.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:145 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'SUPPORT_CONSOLE_APP'.
This warning is for project developers. Use -Wno-dev to suppress it.
-- *** Debug Logging is NOT enabled.
-- Using /MD DYNAMIC runtime
-- *** Also building DLL library SHARED, version 5.9.14, date 2021.08.17
CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Bash (missing: BASH_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
extern/cesium-native/extern/KTX-Software/cmake/modules/FindBash.cmake:96 (find_package_handle_standard_args)
extern/cesium-native/extern/KTX-Software/CMakeLists.txt:8 (find_package)
-- Configuring incomplete, errors occurred!
F:\Cesium001\cesium-unity-samples\Packages\com.cesium.unity\native~>
It seems one of the third-party components we use requires bash as part of its build process. The easiest way to get bash on Windows is to install git for Windows:
Found the reason, git and git bash are not in the same directory. You need to add the directory of git bash to the system environment variable. The location of git bash is: C: Program Files Git git is: C: Program Files Git cmd