Repository: bulletphysics/bullet3

Issue:
BT_USE_DOUBLE_PRECISION is not added to BulletConfig.cmake.in
It looks like this is exported to bullet.pc.in but is not done for BulletConfig.cmake.in. Should BULLET_DEFINITIONS in BulletConfig.cmake.in be changed to the argument used in bullet.pc.in?


Discussion:
There is no maintainer for those files, so if you have an improvement suggestion, please submit a PR. Thanks!
Ah, I will create a PR. Is there any objections to upgrading to use modern cmake functionality?
@Levi-Armstrong Were you able to get anywhere with this?

Patch:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e4cdcc3139..00e7b1a10c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -470,6 +470,7 @@ IF (BUILD_UNIT_TESTS)
 ENDIF()
 
 set (BULLET_CONFIG_CMAKE_PATH lib${LIB_SUFFIX}/cmake/bullet )
+list (APPEND BULLET_DEFINITIONS ${BULLET_DOUBLE_DEF})
 list (APPEND BULLET_LIBRARIES LinearMath)
 list (APPEND BULLET_LIBRARIES Bullet3Common)
 list (APPEND BULLET_LIBRARIES BulletInverseDynamics)