Option to skip version generation
Closed this issue · 2 comments
autoantwort commented
When I currently try to build the project I get the following error:
[1/2] "C:/Users/LeanderSchulten/git_projects/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" -S "C:/Users/LeanderSchulten/git_projects/vcpkg/buildtrees/bext-wintls/src/v0.9.5-d4736bf30a.clean" -B "../../x86-windows-dbg" "-DENABLE_TESTING=OFF" "-DENABLE_EXAMPLES=OFF" "-DCMAKE_MAKE_PROGRAM=C:/Users/LeanderSchulten/git_projects/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Users/LeanderSchulten/git_projects/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x86-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/Users/LeanderSchulten/git_projects/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x86" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/Users/LeanderSchulten/git_projects/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Users/LeanderSchulten/git_projects/vcpkg/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/Users/LeanderSchulten/git_projects/vcpkg/packages/bext-wintls_x86-windows/debug"
FAILED: ../../x86-windows-dbg/CMakeCache.txt
"C:/Users/LeanderSchulten/git_projects/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" -S "C:/Users/LeanderSchulten/git_projects/vcpkg/buildtrees/bext-wintls/src/v0.9.5-d4736bf30a.clean" -B "../../x86-windows-dbg" "-DENABLE_TESTING=OFF" "-DENABLE_EXAMPLES=OFF" "-DCMAKE_MAKE_PROGRAM=C:/Users/LeanderSchulten/git_projects/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Users/LeanderSchulten/git_projects/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x86-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/Users/LeanderSchulten/git_projects/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x86" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/Users/LeanderSchulten/git_projects/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Users/LeanderSchulten/git_projects/vcpkg/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/Users/LeanderSchulten/git_projects/vcpkg/packages/bext-wintls_x86-windows/debug"
-- Found Git: C:/Users/LeanderSchulten/git_projects/vcpkg/downloads/tools/git-2.32.0.2-windows/mingw32/bin/git.exe (found version "2.32.0.windows.2")
CMake Error at cmake/VersionFromGit.cmake:93 (message):
[MunkeiVersionFromGit] Git tag isn't valid semantic version: [2021.05.12]
Call Stack (most recent call first):
CMakeLists.txt:7 (version_from_git)
Which happens because vcpkg only downloads the source and then version_from_git
detects the vcpkg git repo.
I suggest adding an option to skip the version generation, or an option to pass the version.
autoantwort commented
Ok nvm. Since this lib does not provide cmake configs installation is no necessary
laudrup commented
If there's any improvements that could be made to make this library easier to use I would be happy to know it.
For example I wouldn't mind providing CMake configurations if that would make anything easier, but not really sure what you're trying to achieve.