diff options
author | Don Kjer <don@lindenlab.com> | 2010-12-22 14:24:28 -0800 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2010-12-22 14:24:28 -0800 |
commit | 0f5d8e53cad9afe4f5601c6a6cdd82ec474935e5 (patch) | |
tree | 25333fe8d8ba1c19b176d7feade03ccecfdd5829 /indra/cmake/LLKDU.cmake | |
parent | 649dd6eb74023d48379ebaadd2ff000801306f17 (diff) | |
parent | c86d6a7bbb7c0db7665b76cf52b12b90c6e98c6d (diff) |
Merge with viewer-development
Diffstat (limited to 'indra/cmake/LLKDU.cmake')
-rw-r--r-- | indra/cmake/LLKDU.cmake | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/indra/cmake/LLKDU.cmake b/indra/cmake/LLKDU.cmake index 27c8ada686..f5cbad03a6 100644 --- a/indra/cmake/LLKDU.cmake +++ b/indra/cmake/LLKDU.cmake @@ -1,7 +1,20 @@ # -*- cmake -*- include(Prebuilt) +# USE_KDU can be set when launching cmake or develop.py as an option using the argument -DUSE_KDU:BOOL=ON +# When building using proprietary binaries though (i.e. having access to LL private servers), we always build with KDU if (INSTALL_PROPRIETARY AND NOT STANDALONE) - use_prebuilt_binary(kdu) - set(LLKDU_LIBRARY llkdu) + set(USE_KDU ON) endif (INSTALL_PROPRIETARY AND NOT STANDALONE) + +if (USE_KDU) + use_prebuilt_binary(kdu) + if (WINDOWS) + set(KDU_LIBRARY kdu.lib) + else (WINDOWS) + set(KDU_LIBRARY libkdu.a) + endif (WINDOWS) + set(KDU_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/kdu) + set(LLKDU_INCLUDE_DIRS ${LIBS_OPEN_DIR}/llkdu) + set(LLKDU_LIBRARIES llkdu) +endif (USE_KDU) |