summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-06-14 20:15:53 +0800
committerErik Kundiman <erik@megapahit.org>2024-06-14 20:17:57 +0800
commit8c527302b9724195d3ee7390856462922e9aaa80 (patch)
tree298ae4f6990891109a39c2f048e66ef7b825836e /indra/cmake
parentd10d547d2f5030d022deeb42d1194bb2fe1fdb4b (diff)
Make it build if USE_FMODSTUDIO is set to true
Just put the FMOD api/core files to their corresponding places somewhere like /usr/local, and enclose the headers in a folder named "fmodstudio".
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/FMODSTUDIO.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/cmake/FMODSTUDIO.cmake b/indra/cmake/FMODSTUDIO.cmake
index 9a1cdff6cb..38437b7bfb 100644
--- a/indra/cmake/FMODSTUDIO.cmake
+++ b/indra/cmake/FMODSTUDIO.cmake
@@ -30,7 +30,9 @@ if (USE_FMODSTUDIO)
# Note: if you're not using INSTALL_PROPRIETARY, the package URL should be local (file:/// URL)
# as accessing the private LL location will fail if you don't have the credential
include(Prebuilt)
+ if (NOT USESYSTEMLIBS)
use_prebuilt_binary(fmodstudio)
+ endif ()
if (WINDOWS)
target_link_libraries( ll::fmodstudio INTERFACE fmod_vc)
elseif (DARWIN)
@@ -40,7 +42,9 @@ if (USE_FMODSTUDIO)
target_link_libraries( ll::fmodstudio INTERFACE fmod)
endif (WINDOWS)
+ if (NOT USESYSTEMLIBS)
target_include_directories( ll::fmodstudio SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/fmodstudio)
+ endif ()
endif (FMODSTUDIO_LIBRARY AND FMODSTUDIO_INCLUDE_DIR)
else()
set( USE_FMODSTUDIO "OFF")