add ignore_header setup option, add unit tests for parsing by header, add string_view to possible conversion values

This commit is contained in:
ado
2022-03-27 21:04:02 +02:00
parent 45d166f93d
commit a8fa5c753c
69 changed files with 4194 additions and 33 deletions

View File

@@ -0,0 +1,112 @@
# This is the CMakeCache file.
# For build in directory: /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
########################
# EXTERNAL cache entries
########################
//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON
//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local
//No help, variable specified on the command line.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake
//Value Computed by CMake
CMAKE_PROJECT_DESCRIPTION:STATIC=
//Value Computed by CMake
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=fast_float-populate
//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO
//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
//Value Computed by CMake
fast_float-populate_BINARY_DIR:STATIC=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
//Value Computed by CMake
fast_float-populate_IS_TOP_LEVEL:STATIC=ON
//Value Computed by CMake
fast_float-populate_SOURCE_DIR:STATIC=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
########################
# INTERNAL cache entries
########################
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=22
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Generator instance identifier.
CMAKE_GENERATOR_INSTANCE:INTERNAL=
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
//Install .so files without execute permission.
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.22
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1

View File

@@ -0,0 +1,15 @@
set(CMAKE_HOST_SYSTEM "Linux-5.15.0-2-amd64")
set(CMAKE_HOST_SYSTEM_NAME "Linux")
set(CMAKE_HOST_SYSTEM_VERSION "5.15.0-2-amd64")
set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_SYSTEM "Linux-5.15.0-2-amd64")
set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_SYSTEM_VERSION "5.15.0-2-amd64")
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_CROSSCOMPILING "FALSE")
set(CMAKE_SYSTEM_LOADED 1)

View File

@@ -0,0 +1,16 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
# Relative path conversion top directories.
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild")
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild")
# Force unix paths in dependencies.
set(CMAKE_FORCE_UNIX_PATHS 1)
# The C and CXX include file regular expressions for this directory.
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})

View File

@@ -0,0 +1 @@
The system is: Linux - 5.15.0-2-amd64 - x86_64

View File

@@ -0,0 +1,11 @@
# Hashes of file build rules.
f82acfe405592066fc782df70bc61c8d CMakeFiles/fast_float-populate
502a7f79881635b903ac65b61fffd3b0 CMakeFiles/fast_float-populate-complete
ea1e47e67a341728f05da9fd1f58a04d fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-build
412a77fee93c3684502f65c3d44b2833 fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-configure
dac8362160aa6fea510d32aec7c7b764 fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-download
7f6260650bb36ee769e8e29ed2d7bb09 fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-install
576d21ed83ec9310fb5a062ea412481b fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-mkdir
af08d5ff9035565c895bdf28bbed7ab0 fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-patch
78453536a0ba8eb9b50a5b5418eee1e9 fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-test
76b9e1e4841b396f8ffbb5c54fbf99de fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update

View File

@@ -0,0 +1,41 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
# The generator used is:
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
# The top level Makefile was generated from the following files:
set(CMAKE_MAKEFILE_DEPENDS
"CMakeCache.txt"
"CMakeFiles/3.22.1/CMakeSystem.cmake"
"CMakeLists.txt"
"fast_float-populate-prefix/tmp/fast_float-populate-cfgcmd.txt.in"
"/usr/share/cmake-3.22/Modules/CMakeGenericSystem.cmake"
"/usr/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake"
"/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake"
"/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake"
"/usr/share/cmake-3.22/Modules/ExternalProject-gitupdate.cmake.in"
"/usr/share/cmake-3.22/Modules/ExternalProject.cmake"
"/usr/share/cmake-3.22/Modules/Platform/Linux.cmake"
"/usr/share/cmake-3.22/Modules/Platform/UnixPaths.cmake"
"/usr/share/cmake-3.22/Modules/RepositoryInfo.txt.in"
)
# The corresponding makefile is:
set(CMAKE_MAKEFILE_OUTPUTS
"Makefile"
"CMakeFiles/cmake.check_cache"
)
# Byproducts of CMake generate step:
set(CMAKE_MAKEFILE_PRODUCTS
"fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-gitinfo.txt"
"fast_float-populate-prefix/tmp/fast_float-populate-gitupdate.cmake"
"fast_float-populate-prefix/tmp/fast_float-populate-cfgcmd.txt"
"CMakeFiles/CMakeDirectoryInformation.cmake"
)
# Dependency information for all targets:
set(CMAKE_DEPEND_INFO_FILES
"CMakeFiles/fast_float-populate.dir/DependInfo.cmake"
)

View File

@@ -0,0 +1,112 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
#=============================================================================
# Directory level rules for the build root directory
# The main recursive "all" target.
all: CMakeFiles/fast_float-populate.dir/all
.PHONY : all
# The main recursive "preinstall" target.
preinstall:
.PHONY : preinstall
# The main recursive "clean" target.
clean: CMakeFiles/fast_float-populate.dir/clean
.PHONY : clean
#=============================================================================
# Target rules for target CMakeFiles/fast_float-populate.dir
# All Build rule for target.
CMakeFiles/fast_float-populate.dir/all:
$(MAKE) $(MAKESILENT) -f CMakeFiles/fast_float-populate.dir/build.make CMakeFiles/fast_float-populate.dir/depend
$(MAKE) $(MAKESILENT) -f CMakeFiles/fast_float-populate.dir/build.make CMakeFiles/fast_float-populate.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles --progress-num=1,2,3,4,5,6,7,8,9 "Built target fast_float-populate"
.PHONY : CMakeFiles/fast_float-populate.dir/all
# Build rule for subdir invocation for target.
CMakeFiles/fast_float-populate.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles 9
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/fast_float-populate.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles 0
.PHONY : CMakeFiles/fast_float-populate.dir/rule
# Convenience name for target.
fast_float-populate: CMakeFiles/fast_float-populate.dir/rule
.PHONY : fast_float-populate
# clean rule for target.
CMakeFiles/fast_float-populate.dir/clean:
$(MAKE) $(MAKESILENT) -f CMakeFiles/fast_float-populate.dir/build.make CMakeFiles/fast_float-populate.dir/clean
.PHONY : CMakeFiles/fast_float-populate.dir/clean
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system

View File

@@ -0,0 +1,3 @@
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/fast_float-populate.dir
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/edit_cache.dir
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/rebuild_cache.dir

View File

@@ -0,0 +1 @@
# This file is generated by cmake for dependency checking of the CMakeCache.txt file

View File

@@ -0,0 +1,18 @@
# Consider dependencies only in project.
set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF)
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
)
# The set of dependency files which are needed:
set(CMAKE_DEPENDS_DEPENDENCY_FILES
)
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# Fortran module output directory.
set(CMAKE_Fortran_TARGET_MODULE_DIR "")

View File

@@ -0,0 +1,46 @@
{
"sources" :
[
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/fast_float-populate"
},
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/fast_float-populate.rule"
},
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/fast_float-populate-complete.rule"
},
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-build.rule"
},
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-configure.rule"
},
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-download.rule"
},
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-install.rule"
},
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-mkdir.rule"
},
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-patch.rule"
},
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-test.rule"
},
{
"file" : "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update.rule"
}
],
"target" :
{
"labels" :
[
"fast_float-populate"
],
"name" : "fast_float-populate"
}
}

View File

@@ -0,0 +1,14 @@
# Target labels
fast_float-populate
# Source files and their labels
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/fast_float-populate
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/fast_float-populate.rule
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/fast_float-populate-complete.rule
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-build.rule
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-configure.rule
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-download.rule
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-install.rule
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-mkdir.rule
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-patch.rule
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-test.rule
/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update.rule

View File

@@ -0,0 +1,162 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
# Utility rule file for fast_float-populate.
# Include any custom commands dependencies for this target.
include CMakeFiles/fast_float-populate.dir/compiler_depend.make
# Include the progress variables for this target.
include CMakeFiles/fast_float-populate.dir/progress.make
CMakeFiles/fast_float-populate: CMakeFiles/fast_float-populate-complete
CMakeFiles/fast_float-populate-complete: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-install
CMakeFiles/fast_float-populate-complete: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-mkdir
CMakeFiles/fast_float-populate-complete: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-download
CMakeFiles/fast_float-populate-complete: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update
CMakeFiles/fast_float-populate-complete: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-patch
CMakeFiles/fast_float-populate-complete: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-configure
CMakeFiles/fast_float-populate-complete: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-build
CMakeFiles/fast_float-populate-complete: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-install
CMakeFiles/fast_float-populate-complete: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-test
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Completed 'fast_float-populate'"
/usr/bin/cmake -E make_directory /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles
/usr/bin/cmake -E touch /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/fast_float-populate-complete
/usr/bin/cmake -E touch /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-done
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update:
.PHONY : fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-build: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-configure
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "No build step for 'fast_float-populate'"
cd /home/ado/git/ssp/hbuild/_deps/fast_float-build && /usr/bin/cmake -E echo_append
cd /home/ado/git/ssp/hbuild/_deps/fast_float-build && /usr/bin/cmake -E touch /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-build
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-configure: fast_float-populate-prefix/tmp/fast_float-populate-cfgcmd.txt
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-configure: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-patch
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "No configure step for 'fast_float-populate'"
cd /home/ado/git/ssp/hbuild/_deps/fast_float-build && /usr/bin/cmake -E echo_append
cd /home/ado/git/ssp/hbuild/_deps/fast_float-build && /usr/bin/cmake -E touch /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-configure
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-download: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-gitinfo.txt
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-download: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-mkdir
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Performing download step (git clone) for 'fast_float-populate'"
cd /home/ado/git/ssp/hbuild/_deps && /usr/bin/cmake -P /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/tmp/fast_float-populate-gitclone.cmake
cd /home/ado/git/ssp/hbuild/_deps && /usr/bin/cmake -E touch /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-download
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-install: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "No install step for 'fast_float-populate'"
cd /home/ado/git/ssp/hbuild/_deps/fast_float-build && /usr/bin/cmake -E echo_append
cd /home/ado/git/ssp/hbuild/_deps/fast_float-build && /usr/bin/cmake -E touch /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-install
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-mkdir:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Creating directories for 'fast_float-populate'"
/usr/bin/cmake -E make_directory /home/ado/git/ssp/hbuild/_deps/fast_float-src
/usr/bin/cmake -E make_directory /home/ado/git/ssp/hbuild/_deps/fast_float-build
/usr/bin/cmake -E make_directory /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix
/usr/bin/cmake -E make_directory /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/tmp
/usr/bin/cmake -E make_directory /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp
/usr/bin/cmake -E make_directory /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src
/usr/bin/cmake -E make_directory /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp
/usr/bin/cmake -E touch /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-mkdir
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-patch: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "No patch step for 'fast_float-populate'"
/usr/bin/cmake -E echo_append
/usr/bin/cmake -E touch /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-patch
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update:
.PHONY : fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-test: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-install
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles --progress-num=$(CMAKE_PROGRESS_8) "No test step for 'fast_float-populate'"
cd /home/ado/git/ssp/hbuild/_deps/fast_float-build && /usr/bin/cmake -E echo_append
cd /home/ado/git/ssp/hbuild/_deps/fast_float-build && /usr/bin/cmake -E touch /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-test
fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-download
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles --progress-num=$(CMAKE_PROGRESS_9) "Performing update step for 'fast_float-populate'"
cd /home/ado/git/ssp/hbuild/_deps/fast_float-src && /usr/bin/cmake -P /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/tmp/fast_float-populate-gitupdate.cmake
fast_float-populate: CMakeFiles/fast_float-populate
fast_float-populate: CMakeFiles/fast_float-populate-complete
fast_float-populate: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-build
fast_float-populate: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-configure
fast_float-populate: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-download
fast_float-populate: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-install
fast_float-populate: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-mkdir
fast_float-populate: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-patch
fast_float-populate: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-test
fast_float-populate: fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update
fast_float-populate: CMakeFiles/fast_float-populate.dir/build.make
.PHONY : fast_float-populate
# Rule to build all files generated by this target.
CMakeFiles/fast_float-populate.dir/build: fast_float-populate
.PHONY : CMakeFiles/fast_float-populate.dir/build
CMakeFiles/fast_float-populate.dir/clean:
$(CMAKE_COMMAND) -P CMakeFiles/fast_float-populate.dir/cmake_clean.cmake
.PHONY : CMakeFiles/fast_float-populate.dir/clean
CMakeFiles/fast_float-populate.dir/depend:
cd /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles/fast_float-populate.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/fast_float-populate.dir/depend

View File

@@ -0,0 +1,17 @@
file(REMOVE_RECURSE
"CMakeFiles/fast_float-populate"
"CMakeFiles/fast_float-populate-complete"
"fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-build"
"fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-configure"
"fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-download"
"fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-install"
"fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-mkdir"
"fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-patch"
"fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-test"
"fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-update"
)
# Per-language clean rules from dependency scanning.
foreach(lang )
include(CMakeFiles/fast_float-populate.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()

View File

@@ -0,0 +1,2 @@
# Empty custom commands generated dependencies file for fast_float-populate.
# This may be replaced when dependencies are built.

View File

@@ -0,0 +1,2 @@
# CMAKE generated file: DO NOT EDIT!
# Timestamp file for custom commands dependencies management for fast_float-populate.

View File

@@ -0,0 +1,10 @@
CMAKE_PROGRESS_1 = 1
CMAKE_PROGRESS_2 = 2
CMAKE_PROGRESS_3 = 3
CMAKE_PROGRESS_4 = 4
CMAKE_PROGRESS_5 = 5
CMAKE_PROGRESS_6 = 6
CMAKE_PROGRESS_7 = 7
CMAKE_PROGRESS_8 = 8
CMAKE_PROGRESS_9 = 9

View File

@@ -0,0 +1 @@
9

View File

@@ -0,0 +1,35 @@
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
cmake_minimum_required(VERSION 3.22.1)
# We name the project and the target for the ExternalProject_Add() call
# to something that will highlight to the user what we are working on if
# something goes wrong and an error message is produced.
project(fast_float-populate NONE)
# Pass through things we've already detected in the main project to avoid
# paying the cost of redetecting them again in ExternalProject_Add()
set(GIT_EXECUTABLE [==[/usr/bin/git]==])
set(GIT_VERSION_STRING [==[2.33.0]==])
set_property(GLOBAL PROPERTY _CMAKE_FindGit_GIT_EXECUTABLE_VERSION
[==[/usr/bin/git;2.33.0]==]
)
include(ExternalProject)
ExternalProject_Add(fast_float-populate
"UPDATE_DISCONNECTED" "False" "GIT_REPOSITORY" "https://github.com/red0124/fast_float.git" "GIT_TAG" "origin/meson" "GIT_SHALLOW" "TRUE"
SOURCE_DIR "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
BINARY_DIR "/home/ado/git/ssp/hbuild/_deps/fast_float-build"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
TEST_COMMAND ""
USES_TERMINAL_DOWNLOAD YES
USES_TERMINAL_UPDATE YES
)

View File

@@ -0,0 +1,154 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild//CMakeFiles/progress.marks
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast
# clear depends
depend:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
#=============================================================================
# Target rules for targets named fast_float-populate
# Build rule for target.
fast_float-populate: cmake_check_build_system
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 fast_float-populate
.PHONY : fast_float-populate
# fast build rule for target.
fast_float-populate/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles/fast_float-populate.dir/build.make CMakeFiles/fast_float-populate.dir/build
.PHONY : fast_float-populate/fast
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... edit_cache"
@echo "... rebuild_cache"
@echo "... fast_float-populate"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system

View File

@@ -0,0 +1,49 @@
# Install script for directory: /home/ado/git/ssp/hbuild/_deps/fast_float-subbuild
# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/local")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install configuration name.
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
if(BUILD_TYPE)
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
else()
set(CMAKE_INSTALL_CONFIG_NAME "")
endif()
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
endif()
# Set the component getting installed.
if(NOT CMAKE_INSTALL_COMPONENT)
if(COMPONENT)
message(STATUS "Install component: \"${COMPONENT}\"")
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
else()
set(CMAKE_INSTALL_COMPONENT)
endif()
endif()
# Install shared libraries without execute permission?
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
set(CMAKE_INSTALL_SO_NO_EXE "1")
endif()
# Is this installation the result of a crosscompile?
if(NOT DEFINED CMAKE_CROSSCOMPILING)
set(CMAKE_CROSSCOMPILING "FALSE")
endif()
if(CMAKE_INSTALL_COMPONENT)
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
else()
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
endif()
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
"${CMAKE_INSTALL_MANIFEST_FILES}")
file(WRITE "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/${CMAKE_INSTALL_MANIFEST}"
"${CMAKE_INSTALL_MANIFEST_CONTENT}")

View File

@@ -0,0 +1,3 @@
repository='https://github.com/red0124/fast_float.git'
module=''
tag='origin'

View File

@@ -0,0 +1,3 @@
repository='https://github.com/red0124/fast_float.git'
module=''
tag='origin'

View File

@@ -0,0 +1,66 @@
if(NOT "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-gitinfo.txt" IS_NEWER_THAN "/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-gitclone-lastrun.txt")
message(STATUS "Avoiding repeated git clone, stamp file is up to date: '/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-gitclone-lastrun.txt'")
return()
endif()
execute_process(
COMMAND ${CMAKE_COMMAND} -E rm -rf "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
RESULT_VARIABLE error_code
)
if(error_code)
message(FATAL_ERROR "Failed to remove directory: '/home/ado/git/ssp/hbuild/_deps/fast_float-src'")
endif()
# try the clone 3 times in case there is an odd git clone issue
set(error_code 1)
set(number_of_tries 0)
while(error_code AND number_of_tries LESS 3)
execute_process(
COMMAND "/usr/bin/git" clone --no-checkout --depth 1 --no-single-branch --config "advice.detachedHead=false" "https://github.com/red0124/fast_float.git" "fast_float-src"
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps"
RESULT_VARIABLE error_code
)
math(EXPR number_of_tries "${number_of_tries} + 1")
endwhile()
if(number_of_tries GREATER 1)
message(STATUS "Had to git clone more than once:
${number_of_tries} times.")
endif()
if(error_code)
message(FATAL_ERROR "Failed to clone repository: 'https://github.com/red0124/fast_float.git'")
endif()
execute_process(
COMMAND "/usr/bin/git" checkout origin/meson --
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
RESULT_VARIABLE error_code
)
if(error_code)
message(FATAL_ERROR "Failed to checkout tag: 'origin/meson'")
endif()
set(init_submodules TRUE)
if(init_submodules)
execute_process(
COMMAND "/usr/bin/git" submodule update --recursive --init
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
RESULT_VARIABLE error_code
)
endif()
if(error_code)
message(FATAL_ERROR "Failed to update submodules in: '/home/ado/git/ssp/hbuild/_deps/fast_float-src'")
endif()
# Complete success, update the script-last-run stamp file:
#
execute_process(
COMMAND ${CMAKE_COMMAND} -E copy
"/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-gitinfo.txt"
"/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-gitclone-lastrun.txt"
RESULT_VARIABLE error_code
)
if(error_code)
message(FATAL_ERROR "Failed to copy script-last-run stamp file: '/home/ado/git/ssp/hbuild/_deps/fast_float-subbuild/fast_float-populate-prefix/src/fast_float-populate-stamp/fast_float-populate-gitclone-lastrun.txt'")
endif()

View File

@@ -0,0 +1,277 @@
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
cmake_minimum_required(VERSION 3.5)
function(get_hash_for_ref ref out_var err_var)
execute_process(
COMMAND "/usr/bin/git" rev-parse "${ref}^0"
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
RESULT_VARIABLE error_code
OUTPUT_VARIABLE ref_hash
ERROR_VARIABLE error_msg
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(error_code)
set(${out_var} "" PARENT_SCOPE)
else()
set(${out_var} "${ref_hash}" PARENT_SCOPE)
endif()
set(${err_var} "${error_msg}" PARENT_SCOPE)
endfunction()
get_hash_for_ref(HEAD head_sha error_msg)
if(head_sha STREQUAL "")
message(FATAL_ERROR "Failed to get the hash for HEAD:\n${error_msg}")
endif()
execute_process(
COMMAND "/usr/bin/git" show-ref "origin/meson"
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
OUTPUT_VARIABLE show_ref_output
)
if(show_ref_output MATCHES "^[a-z0-9]+[ \\t]+refs/remotes/")
# Given a full remote/branch-name and we know about it already. Since
# branches can move around, we always have to fetch.
set(fetch_required YES)
set(checkout_name "origin/meson")
elseif(show_ref_output MATCHES "^[a-z0-9]+[ \\t]+refs/tags/")
# Given a tag name that we already know about. We don't know if the tag we
# have matches the remote though (tags can move), so we should fetch.
set(fetch_required YES)
set(checkout_name "origin/meson")
# Special case to preserve backward compatibility: if we are already at the
# same commit as the tag we hold locally, don't do a fetch and assume the tag
# hasn't moved on the remote.
# FIXME: We should provide an option to always fetch for this case
get_hash_for_ref("origin/meson" tag_sha error_msg)
if(tag_sha STREQUAL head_sha)
message(VERBOSE "Already at requested tag: ${tag_sha}")
return()
endif()
elseif(show_ref_output MATCHES "^[a-z0-9]+[ \\t]+refs/heads/")
# Given a branch name without any remote and we already have a branch by that
# name. We might already have that branch checked out or it might be a
# different branch. It isn't safe to use a bare branch name without the
# remote, so do a fetch and replace the ref with one that includes the remote.
set(fetch_required YES)
set(checkout_name "origin/origin/meson")
else()
get_hash_for_ref("origin/meson" tag_sha error_msg)
if(tag_sha STREQUAL head_sha)
# Have the right commit checked out already
message(VERBOSE "Already at requested ref: ${tag_sha}")
return()
elseif(tag_sha STREQUAL "")
# We don't know about this ref yet, so we have no choice but to fetch.
# We deliberately swallow any error message at the default log level
# because it can be confusing for users to see a failed git command.
# That failure is being handled here, so it isn't an error.
set(fetch_required YES)
set(checkout_name "origin/meson")
if(NOT error_msg STREQUAL "")
message(VERBOSE "${error_msg}")
endif()
else()
# We have the commit, so we know we were asked to find a commit hash
# (otherwise it would have been handled further above), but we don't
# have that commit checked out yet
set(fetch_required NO)
set(checkout_name "origin/meson")
if(NOT error_msg STREQUAL "")
message(WARNING "${error_msg}")
endif()
endif()
endif()
if(fetch_required)
message(VERBOSE "Fetching latest from the remote origin")
execute_process(
COMMAND "/usr/bin/git" fetch --tags --force "origin"
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
COMMAND_ERROR_IS_FATAL ANY
)
endif()
set(git_update_strategy "REBASE")
if(git_update_strategy STREQUAL "")
# Backward compatibility requires REBASE as the default behavior
set(git_update_strategy REBASE)
endif()
if(git_update_strategy MATCHES "^REBASE(_CHECKOUT)?$")
# Asked to potentially try to rebase first, maybe with fallback to checkout.
# We can't if we aren't already on a branch and we shouldn't if that local
# branch isn't tracking the one we want to checkout.
execute_process(
COMMAND "/usr/bin/git" symbolic-ref -q HEAD
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
OUTPUT_VARIABLE current_branch
OUTPUT_STRIP_TRAILING_WHITESPACE
# Don't test for an error. If this isn't a branch, we get a non-zero error
# code but empty output.
)
if(current_branch STREQUAL "")
# Not on a branch, checkout is the only sensible option since any rebase
# would always fail (and backward compatibility requires us to checkout in
# this situation)
set(git_update_strategy CHECKOUT)
else()
execute_process(
COMMAND "/usr/bin/git" for-each-ref "--format='%(upstream:short)'" "${current_branch}"
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
OUTPUT_VARIABLE upstream_branch
OUTPUT_STRIP_TRAILING_WHITESPACE
COMMAND_ERROR_IS_FATAL ANY # There is no error if no upstream is set
)
if(NOT upstream_branch STREQUAL checkout_name)
# Not safe to rebase when asked to checkout a different branch to the one
# we are tracking. If we did rebase, we could end up with arbitrary
# commits added to the ref we were asked to checkout if the current local
# branch happens to be able to rebase onto the target branch. There would
# be no error message and the user wouldn't know this was occurring.
set(git_update_strategy CHECKOUT)
endif()
endif()
elseif(NOT git_update_strategy STREQUAL "CHECKOUT")
message(FATAL_ERROR "Unsupported git update strategy: ${git_update_strategy}")
endif()
# Check if stash is needed
execute_process(
COMMAND "/usr/bin/git" status --porcelain
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
RESULT_VARIABLE error_code
OUTPUT_VARIABLE repo_status
)
if(error_code)
message(FATAL_ERROR "Failed to get the status")
endif()
string(LENGTH "${repo_status}" need_stash)
# If not in clean state, stash changes in order to be able to perform a
# rebase or checkout without losing those changes permanently
if(need_stash)
execute_process(
COMMAND "/usr/bin/git" stash save --quiet;--include-untracked
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
COMMAND_ERROR_IS_FATAL ANY
)
endif()
if(git_update_strategy STREQUAL "CHECKOUT")
execute_process(
COMMAND "/usr/bin/git" checkout "${checkout_name}"
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
COMMAND_ERROR_IS_FATAL ANY
)
else()
execute_process(
COMMAND "/usr/bin/git" rebase "${checkout_name}"
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
RESULT_VARIABLE error_code
OUTPUT_VARIABLE rebase_output
ERROR_VARIABLE rebase_output
)
if(error_code)
# Rebase failed, undo the rebase attempt before continuing
execute_process(
COMMAND "/usr/bin/git" rebase --abort
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
)
if(NOT git_update_strategy STREQUAL "REBASE_CHECKOUT")
# Not allowed to do a checkout as a fallback, so cannot proceed
if(need_stash)
execute_process(
COMMAND "/usr/bin/git" stash pop --index --quiet
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
)
endif()
message(FATAL_ERROR "\nFailed to rebase in: '/home/ado/git/ssp/hbuild/_deps/fast_float-src'."
"\nOutput from the attempted rebase follows:"
"\n${rebase_output}"
"\n\nYou will have to resolve the conflicts manually")
endif()
# Fall back to checkout. We create an annotated tag so that the user
# can manually inspect the situation and revert if required.
# We can't log the failed rebase output because MSVC sees it and
# intervenes, causing the build to fail even though it completes.
# Write it to a file instead.
string(TIMESTAMP tag_timestamp "%Y%m%dT%H%M%S" UTC)
set(tag_name _cmake_ExternalProject_moved_from_here_${tag_timestamp}Z)
set(error_log_file ${CMAKE_CURRENT_LIST_DIR}/rebase_error_${tag_timestamp}Z.log)
file(WRITE ${error_log_file} "${rebase_output}")
message(WARNING "Rebase failed, output has been saved to ${error_log_file}"
"\nFalling back to checkout, previous commit tagged as ${tag_name}")
execute_process(
COMMAND "/usr/bin/git" tag -a
-m "ExternalProject attempting to move from here to ${checkout_name}"
${tag_name}
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
COMMAND_ERROR_IS_FATAL ANY
)
execute_process(
COMMAND "/usr/bin/git" checkout "${checkout_name}"
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
COMMAND_ERROR_IS_FATAL ANY
)
endif()
endif()
if(need_stash)
# Put back the stashed changes
execute_process(
COMMAND "/usr/bin/git" stash pop --index --quiet
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
RESULT_VARIABLE error_code
)
if(error_code)
# Stash pop --index failed: Try again dropping the index
execute_process(
COMMAND "/usr/bin/git" reset --hard --quiet
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
)
execute_process(
COMMAND "/usr/bin/git" stash pop --quiet
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
RESULT_VARIABLE error_code
)
if(error_code)
# Stash pop failed: Restore previous state.
execute_process(
COMMAND "/usr/bin/git" reset --hard --quiet ${head_sha}
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
)
execute_process(
COMMAND "/usr/bin/git" stash pop --index --quiet
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
)
message(FATAL_ERROR "\nFailed to unstash changes in: '/home/ado/git/ssp/hbuild/_deps/fast_float-src'."
"\nYou will have to resolve the conflicts manually")
endif()
endif()
endif()
set(init_submodules "TRUE")
if(init_submodules)
execute_process(
COMMAND "/usr/bin/git" submodule update --recursive --init
WORKING_DIRECTORY "/home/ado/git/ssp/hbuild/_deps/fast_float-src"
COMMAND_ERROR_IS_FATAL ANY
)
endif()