summaryrefslogtreecommitdiff
path: root/indra/cmake/LLPhysicsExtensions.cmake
diff options
context:
space:
mode:
authorNyx (Neal Orman) <nyx@lindenlab.com>2012-01-27 15:09:20 -0500
committerNyx (Neal Orman) <nyx@lindenlab.com>2012-01-27 15:09:20 -0500
commitf19a77047d10eca2bff07891375b7859b9e68e99 (patch)
treee1785f17d278baae42e16047ff9e163af9eba6dd /indra/cmake/LLPhysicsExtensions.cmake
parent78e96466cbb7ec054ff11a211dc6734ba317cb0f (diff)
PATH-192 FIX fixed last issues with convex decomp merge
Diffstat (limited to 'indra/cmake/LLPhysicsExtensions.cmake')
-rw-r--r--indra/cmake/LLPhysicsExtensions.cmake21
1 files changed, 10 insertions, 11 deletions
diff --git a/indra/cmake/LLPhysicsExtensions.cmake b/indra/cmake/LLPhysicsExtensions.cmake
index 598ac72849..53972e050a 100644
--- a/indra/cmake/LLPhysicsExtensions.cmake
+++ b/indra/cmake/LLPhysicsExtensions.cmake
@@ -1,14 +1,21 @@
# -*- cmake -*-
include(Prebuilt)
-use_prebuilt_binary(llphysicsextensions)
+if (INSTALL_PROPRIETARY AND NOT STANDALONE)
+ use_prebuilt_binary(llphysicsextensions)
+ set(LLPHYSICS_EXTENSIONS_LIB_NAME llphysicsextensions)
+else (INSTALL_PROPRIETARY AND NOT STANDALONE)
+ use_prebuilt_binary(llphysicsextensionsstub)
+ set(LLPHYSICS_EXTENSIONS_LIB_NAME llphysicsextensionsstub)
+endif (INSTALL_PROPRIETARY AND NOT STANDALONE)
+
set(LLPHYSICS_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/lib/include)
set(LLPHYSICS_DEBUG_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/debug)
set(LLPHYSICS_RELEASE_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/release)
-find_library(LL_PHYSICS_DEBUG_LIB llphysicsextensions PATHS ${LLPHYSICS_DEBUG_LIBRARY_PATH})
-find_library(LL_PHYSICS_RELEASE_LIB llphysicsextensions PATHS ${LLPHYSICS_RELEASE_LIBRARY_PATH})
+find_library(LL_PHYSICS_DEBUG_LIB ${LLPHYSICS_EXTENSIONS_LIB_NAME} PATHS ${LLPHYSICS_DEBUG_LIBRARY_PATH})
+find_library(LL_PHYSICS_RELEASE_LIB ${LLPHYSICS_EXTENSIONS_LIB_NAME} PATHS ${LLPHYSICS_RELEASE_LIBRARY_PATH})
set(LLPHYSICS_LIBRARIES
@@ -21,11 +28,3 @@ if (LINUX)
list(APPEND LLPHYSICS_LIBRARIES -Wl,--end-group)
endif (LINUX)
-# if (INSTALL_PROPRIETARY AND NOT STANDALONE)
-# use_prebuilt_binary(llconvexdecomposition)
-# set(LLCONVEXDECOMP_LIBRARY llconvexdecomposition)
-# else (INSTALL_PROPRIETARY AND NOT STANDALONE)
-# use_prebuilt_binary(llconvexdecompositionstub)
-# set(LLCONVEXDECOMP_LIBRARY llconvexdecompositionstub)
-# endif (INSTALL_PROPRIETARY AND NOT STANDALONE)
-