summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Kasyanov <corrmage@gmail.com>2021-05-04 21:53:11 +0200
committerNikolay Kasyanov <corrmage@gmail.com>2021-05-04 21:53:11 +0200
commit65925b2b72beaa00a0e7d5158aa1fb0766c0223c (patch)
tree7bb69ccbc88e9bded3b998627f71f21250a82e7e
parent0f33734f5d1f8769f634ce1133f72152c77efdb8 (diff)
Pass CMAKE_PREFIX_PATH into Bullet precision checkimprove-bullet-precision-check
Fixes macOS and potentially any other builds that use dependencies from non-standard directories.
-rw-r--r--cmake/CheckBulletPrecision.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/CheckBulletPrecision.cmake b/cmake/CheckBulletPrecision.cmake
index 4700f1651d..ede1808535 100644
--- a/cmake/CheckBulletPrecision.cmake
+++ b/cmake/CheckBulletPrecision.cmake
@@ -45,6 +45,6 @@ try_compile(RESULT_VAR
${CMAKE_BINARY_DIR}/temp
${TMP_ROOT}
checkbullet
- CMAKE_FLAGS "${ROOT}"
+ CMAKE_FLAGS "${ROOT}" "-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}"
)
set(HAS_DOUBLE_PRECISION_BULLET ${RESULT_VAR})