Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLM_ENABLE_EXPERIMENTAL option / install cleanup #741

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 12 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ option(GLM_TEST_ENABLE_SIMD_AVX "Enable AVX optimizations" OFF)
option(GLM_TEST_ENABLE_SIMD_AVX2 "Enable AVX2 optimizations" OFF)
option(GLM_TEST_FORCE_PURE "Force 'pure' instructions" OFF)

option(GLM_ENABLE_EXPERIMENTAL "Enable experimental GLM_GTX" OFF)
configure_file(glm/experimental.hpp.in experimental.hpp @ONLY)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not simply:
if GLM_ENABLE_EXPERIMENTAL
add_definitions(-DGLM_ENABLE_EXPERIMENTAL)
?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that make depending libs happy?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not defining GLM_ENABLE_EXPERIMENTAL in the dependent library that includes GLM then?

include_directories(${CMAKE_BINARY_DIR}/glm)
include_directories(${CMAKE_BINARY_DIR})

if(GLM_TEST_FORCE_PURE)
add_definitions(-DGLM_FORCE_PURE)

Expand Down Expand Up @@ -166,7 +171,13 @@ option(GLM_INSTALL_ENABLE "GLM install" ON)

set(GLM_INSTALL_CONFIGDIR "${CMAKE_INSTALL_LIBDIR}/cmake/glm")
if (GLM_INSTALL_ENABLE)
install(DIRECTORY glm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(DIRECTORY glm
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.hpp"
PATTERN "*.inl")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/experimental.hpp" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/glm)
endif()

write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake" VERSION ${GLM_VERSION} COMPATIBILITY AnyNewerVersion)
Expand Down
2 changes: 2 additions & 0 deletions glm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ source_group("SIMD Files" FILES ${SIMD_INLINE})
source_group("SIMD Files" FILES ${SIMD_HEADER})

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
# make out-of tree builds find experimental.hpp
include_directories(${CMAKE_BINARY_DIR}/glm)

if(GLM_STATIC_LIBRARY_ENABLE OR GLM_DYNAMIC_LIBRARY_ENABLE)
if(GLM_STATIC_LIBRARY_ENABLE)
Expand Down
1 change: 1 addition & 0 deletions glm/experimental.hpp.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#cmakedefine GLM_ENABLE_EXPERIMENTAL
1 change: 1 addition & 0 deletions glm/ext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
# include "./gtc/type_aligned.hpp"
#endif

#include "experimental.hpp"
#ifdef GLM_ENABLE_EXPERIMENTAL
#include "./gtx/associated_min_max.hpp"
#include "./gtx/bit.hpp"
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/associated_min_max.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GTX_associated_min_max is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/bit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependencies
#include "../gtc/bitfield.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_bit is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/closest_point.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_closest_point is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/color_space.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_color_space is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/color_space_YCoCg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_color_space_YCoCg is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "../vec4.hpp"
#include "../gtc/vec1.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_common is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/compatibility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "../glm.hpp"
#include "../gtc/quaternion.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_compatibility is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/component_wise.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "../detail/setup.hpp"
#include "../detail/qualifier.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_component_wise is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/dual_quaternion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "../gtc/constants.hpp"
#include "../gtc/quaternion.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_dual_quaternion is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/euler_angles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_euler_angles is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/extend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_extend is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/extended_min_max.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_extented_min_max is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/fast_exponential.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_fast_exponential is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/fast_square_root.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "../exponential.hpp"
#include "../geometric.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_fast_square_root is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/fast_trigonometry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../gtc/constants.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_fast_trigonometry is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/gradient_paint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "../glm.hpp"
#include "../gtx/optimum_pow.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_gradient_paint is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/handed_coordinate_space.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_handed_coordinate_space is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#pragma once

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_hash is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/integer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "../glm.hpp"
#include "../gtc/integer.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_integer is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/intersect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "../gtx/closest_point.hpp"
#include "../gtx/vector_query.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_closest_point is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "../glm.hpp"
#include "../gtx/quaternion.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_io is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/log_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_log_base is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/matrix_cross_product.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_matrix_cross_product is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/matrix_decompose.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "../gtc/quaternion.hpp"
#include "../gtc/matrix_transform.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_matrix_decompose is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/matrix_factorisation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_matrix_factorisation is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/matrix_interpolation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_matrix_interpolation is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/matrix_major_storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_matrix_major_storage is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/matrix_operation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_matrix_operation is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/matrix_query.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "../gtx/vector_query.hpp"
#include <limits>

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_matrix_query is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/matrix_transform_2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "../mat3x3.hpp"
#include "../vec2.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_matrix_transform_2d is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/mixed_product.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_mixed_product is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/norm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "../geometric.hpp"
#include "../gtx/quaternion.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_norm is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/normal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_normal is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/normalize_dot.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// Dependency:
#include "../gtx/fast_square_root.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_normalize_dot is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/number_precision.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "../glm.hpp"
#include "../gtc/type_precision.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_number_precision is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/optimum_pow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_optimum_pow is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/orthonormalize.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "../mat3x3.hpp"
#include "../geometric.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_orthonormalize is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/perpendicular.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "../glm.hpp"
#include "../gtx/projection.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_perpendicular is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/polar_coordinates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../glm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_polar_coordinates is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/projection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependency:
#include "../geometric.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_projection is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/quaternion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "../gtc/quaternion.hpp"
#include "../gtx/norm.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_quaternion is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/range.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Dependencies
#include "../detail/setup.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_range is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/raw_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "../detail/setup.hpp"
#include "../detail/type_int.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_raw_data is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down
1 change: 1 addition & 0 deletions glm/gtx/rotate_normalized_axis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "../gtc/epsilon.hpp"
#include "../gtc/quaternion.hpp"

#include "../experimental.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_rotate_normalized_axis is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#endif
Expand Down