diff --git a/.gitmodules b/.gitmodules index ee8d9e5..d4519d3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "doc"] path = doc url = git@git.madvoxel.net:OpenVulkano/OpenVulkano.wiki.git +[submodule "3rdParty/cmake-checks-cache"] + path = 3rdParty/cmake-checks-cache + url = https://github.com/cristianadam/cmake-checks-cache.git diff --git a/3rdParty/cmake-checks-cache b/3rdParty/cmake-checks-cache new file mode 160000 index 0000000..fa345a9 --- /dev/null +++ b/3rdParty/cmake-checks-cache @@ -0,0 +1 @@ +Subproject commit fa345a9dbdf7dc4a6b27d6b6e5113ab38d0b9db9 diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCCompilerFlag.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCCompilerFlag.cmake deleted file mode 100644 index f08f191..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCCompilerFlag.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckCCompilerFlag.cmake) - -macro(check_c_compiler_flag flag variable) - _check_c_compiler_flag("${flag}" ${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Test ${variable}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCSourceCompiles.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCSourceCompiles.cmake deleted file mode 100644 index 18ac96f..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCSourceCompiles.cmake +++ /dev/null @@ -1,37 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckCSourceCompiles.cmake) - -macro(check_c_source_compiles source variable) - if(NOT DEFINED "${variable}") - _check_c_source_compiles("${source}" ${variable}) - else() - _check_c_source_compiles("${source}" ${variable} "${ARGN}") - endif() - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Test ${variable}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCXXCompilerFlag.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCXXCompilerFlag.cmake deleted file mode 100644 index 58d216d..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCXXCompilerFlag.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckCXXCompilerFlag.cmake) - -macro(check_cxx_compiler_flag flag variable) - _check_cxx_compiler_flag("${flag}" ${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Test ${variable}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCXXSourceCompiles.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCXXSourceCompiles.cmake deleted file mode 100644 index 9b58f1a..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCXXSourceCompiles.cmake +++ /dev/null @@ -1,37 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckCXXSourceCompiles.cmake) - -macro(check_cxx_source_compiles source variable) - if(NOT DEFINED "${variable}") - _check_cxx_source_compiles("${source}" ${variable}) - else() - _check_cxx_source_compiles("${source}" ${variable} "${ARGN}") - endif() - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Test ${variable}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCXXSymbolExists.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCXXSymbolExists.cmake deleted file mode 100644 index 689bab8..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckCXXSymbolExists.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckCXXSymbolExists.cmake) - -macro(check_cxx_symbol_exists symbol header variable) - _check_cxx_symbol_exists(${symbol} "${header}" ${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Have C++ symbol ${symbol}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckFunctionExists.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckFunctionExists.cmake deleted file mode 100644 index 5c15b80..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckFunctionExists.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake) - -macro(check_function_exists function variable) - _check_function_exists(${function} ${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Have function ${function}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckIncludeFile.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckIncludeFile.cmake deleted file mode 100644 index 083a308..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckIncludeFile.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake) - -macro(check_include_file header variable) - _check_include_file(${header} ${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Have include ${header}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckIncludeFileCXX.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckIncludeFileCXX.cmake deleted file mode 100644 index 50fdd73..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckIncludeFileCXX.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckIncludeFileCXX.cmake) - -macro(check_include_file_cxx header variable) - _check_include_file_cxx(${header} ${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Have include ${header}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckIncludeFiles.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckIncludeFiles.cmake deleted file mode 100644 index 8be1e86..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckIncludeFiles.cmake +++ /dev/null @@ -1,37 +0,0 @@ -# MIT License - -# Copyright (c) 2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckIncludeFiles.cmake) - -macro(check_include_files headers variable) - if(NOT DEFINED "${variable}") - _check_include_files("${headers}" ${variable}) - else() - _check_include_files("${headers}" ${variable} "${ARGN}") - endif() - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Have include ${headers}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckLibraryExists.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckLibraryExists.cmake deleted file mode 100644 index 1ab7536..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckLibraryExists.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake) - -macro(check_library_exists library function location variable) - _check_library_exists("${library}" ${function} "${location}" ${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Have library ${library}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckStructHasMember.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckStructHasMember.cmake deleted file mode 100644 index 28bd904..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckStructHasMember.cmake +++ /dev/null @@ -1,34 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckStructHasMember.cmake) - -macro(check_struct_has_member struct member header variable) - _check_struct_has_member("${struct}" ${member} "${header}" ${variable} ${ARGN}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"${struct} hash ${member} member\")\n") -endmacro() - diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckSymbolExists.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckSymbolExists.cmake deleted file mode 100644 index 11d459b..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckSymbolExists.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckSymbolExists.cmake) - -macro(check_symbol_exists symbol header variable) - _check_symbol_exists(${symbol} "${header}" ${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"Have symbol ${symbol}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckTypeSize.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckTypeSize.cmake deleted file mode 100644 index ee56b64..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/CheckTypeSize.cmake +++ /dev/null @@ -1,38 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/CheckTypeSize.cmake) - -macro(check_type_size type variable) - _check_type_size(${type} ${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(HAVE_${variable} \"${HAVE_${variable}}\" CACHE INTERNAL \"Result of TRY_COMPILE\")\n") - if(HAVE_${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"${${variable}}\" CACHE INTERNAL \"CHECK_TYPE_SIZE: sizeof(${type})\")\n") - else() - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${variable} \"\" CACHE INTERNAL \"CHECK_TYPE_SIZE: ${type} unknown\")\n") - endif() -endmacro() diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/DumpCMakeVariables.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/DumpCMakeVariables.cmake deleted file mode 100644 index 5267e7e..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/DumpCMakeVariables.cmake +++ /dev/null @@ -1,48 +0,0 @@ -# MIT License - -# Copyright (c) 2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -set(CMAKE_CHECKS_CACHE_FILE "${CMAKE_BINARY_DIR}/cmake_checks_cache.txt" CACHE FILEPATH "CMake checks cache file") - -file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "###############################################################\n") -file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "# Dump of all cache variables that started with CMAKE_*\n") -file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "###############################################################\n") - -get_cmake_property(_cachedVariableNames CACHE_VARIABLES) -list(FILTER _cachedVariableNames INCLUDE REGEX "^CMAKE_.*$") -foreach (_cacheVariable ${_cachedVariableNames}) - get_property(_type CACHE "${_cacheVariable}" PROPERTY TYPE) - get_property(_advanced CACHE "${_cacheVariable}" PROPERTY ADVANCED) - get_property(_help_string CACHE "${_cacheVariable}" PROPERTY HELPSTRING) - string(REPLACE "\"" "\\\"" ${_cacheVariable} "${${_cacheVariable}}") - if (NOT "${_type}" STREQUAL "UNINITIALIZED" AND NOT "${_type}" STREQUAL "STATIC") - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(${_cacheVariable} \"${${_cacheVariable}}\" CACHE ${_type} \"${_help_string}\")\n") - if (${_advanced}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "mark_as_advanced(${_cacheVariable})\n") - endif() - endif() -endforeach() - -file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "###############################################################\n") diff --git a/3rdParty/cmake-checks-cache/CMakeChecksCache/TestBigEndian.cmake b/3rdParty/cmake-checks-cache/CMakeChecksCache/TestBigEndian.cmake deleted file mode 100644 index f99f07d..0000000 --- a/3rdParty/cmake-checks-cache/CMakeChecksCache/TestBigEndian.cmake +++ /dev/null @@ -1,35 +0,0 @@ -# MIT License - -# Copyright (c) 2017-2018 Cristian Adam - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -include_guard(GLOBAL) - -cmake_minimum_required(VERSION 3.11) - -include(DumpCMakeVariables) -include(${CMAKE_ROOT}/Modules/TestBigEndian.cmake) - -#macro(TEST_BIG_ENDIAN VARIABLE) - -macro(test_big_endian variable) - _test_big_endian(${variable}) - file(APPEND ${CMAKE_CHECKS_CACHE_FILE} "set(HAVE_${variable} \"${${variable}}\" CACHE INTERNAL \"Test Big Endian ${variable}\")\n") -endmacro() diff --git a/3rdParty/cmake-checks-cache/LICENSE.md b/3rdParty/cmake-checks-cache/LICENSE.md deleted file mode 100644 index a6da65d..0000000 --- a/3rdParty/cmake-checks-cache/LICENSE.md +++ /dev/null @@ -1,23 +0,0 @@ -``` -MIT License - -Copyright (c) 2017-2018 Cristian Adam - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -```