summaryrefslogtreecommitdiff
path: root/libs/assimp/contrib/draco/cmake/draco_variables.cmake
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-02-12 23:53:22 -0600
committersanine <sanine.not@pm.me>2023-02-12 23:53:22 -0600
commitf1fe73d1909a2448a004a88362a1a532d0d4f7c3 (patch)
treeab37ae3837e2f858de2932bcee9f26e69fab3db1 /libs/assimp/contrib/draco/cmake/draco_variables.cmake
parentf567ea1e2798fd3156a416e61f083ea3e6b95719 (diff)
switch to tinyobj and nanovg from assimp and cairo
Diffstat (limited to 'libs/assimp/contrib/draco/cmake/draco_variables.cmake')
-rw-r--r--libs/assimp/contrib/draco/cmake/draco_variables.cmake64
1 files changed, 0 insertions, 64 deletions
diff --git a/libs/assimp/contrib/draco/cmake/draco_variables.cmake b/libs/assimp/contrib/draco/cmake/draco_variables.cmake
deleted file mode 100644
index 8dbc77a..0000000
--- a/libs/assimp/contrib/draco/cmake/draco_variables.cmake
+++ /dev/null
@@ -1,64 +0,0 @@
-if(DRACO_CMAKE_DRACO_VARIABLES_CMAKE_)
- return()
-endif() # DRACO_CMAKE_DRACO_VARIABLES_CMAKE_
-set(DRACO_CMAKE_DRACO_VARIABLES_CMAKE_ 1)
-
-# Halts generation when $variable_name does not refer to a directory that
-# exists.
-macro(draco_variable_must_be_directory variable_name)
- if("${variable_name}" STREQUAL "")
- message(
- FATAL_ERROR
- "Empty variable_name passed to draco_variable_must_be_directory.")
- endif()
-
- if("${${variable_name}}" STREQUAL "")
- message(
- FATAL_ERROR
- "Empty variable ${variable_name} is required to build draco.")
- endif()
-
- if(NOT IS_DIRECTORY "${${variable_name}}")
- message(
- FATAL_ERROR
- "${variable_name}, which is ${${variable_name}}, does not refer to a\n"
- "directory.")
- endif()
-endmacro()
-
-# Adds $var_name to the tracked variables list.
-macro(draco_track_configuration_variable var_name)
- if(DRACO_VERBOSE GREATER 2)
- message("---- draco_track_configuration_variable ----\n"
- "var_name=${var_name}\n"
- "----------------------------------------------\n")
- endif()
-
- list(APPEND draco_configuration_variables ${var_name})
- list(REMOVE_DUPLICATES draco_configuration_variables)
-endmacro()
-
-# Logs current C++ and executable linker flags via the CMake message command.
-macro(draco_dump_cmake_flag_variables)
- unset(flag_variables)
- list(APPEND flag_variables "CMAKE_CXX_FLAGS_INIT" "CMAKE_CXX_FLAGS"
- "CMAKE_EXE_LINKER_FLAGS_INIT" "CMAKE_EXE_LINKER_FLAGS")
- if(CMAKE_BUILD_TYPE)
- list(APPEND flag_variables "CMAKE_BUILD_TYPE"
- "CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}_INIT"
- "CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}"
- "CMAKE_EXE_LINKER_FLAGS_${CMAKE_BUILD_TYPE}_INIT"
- "CMAKE_EXE_LINKER_FLAGS_${CMAKE_BUILD_TYPE}")
- endif()
- foreach(flag_variable ${flag_variables})
- message("${flag_variable}:${${flag_variable}}")
- endforeach()
-endmacro()
-
-# Dumps the variables tracked in $draco_configuration_variables via the CMake
-# message command.
-macro(draco_dump_tracked_configuration_variables)
- foreach(config_variable ${draco_configuration_variables})
- message("${config_variable}:${${config_variable}}")
- endforeach()
-endmacro()