diff options
author | Aleric Inglewood | 2010-09-28 03:01:40 +0200 |
---|---|---|
committer | Aleric Inglewood | 2010-09-28 03:01:40 +0200 |
commit | 02913d28b3d9cc8805537afcbe4375fa21c313f3 (patch) | |
tree | de59684583ddc13ea2aca60517c565acf1b90f4d /linden/indra/cmake/NDOF.cmake | |
parent | RED-566: doc/contributions.txt clean up (diff) | |
download | meta-impy-02913d28b3d9cc8805537afcbe4375fa21c313f3.zip meta-impy-02913d28b3d9cc8805537afcbe4375fa21c313f3.tar.gz meta-impy-02913d28b3d9cc8805537afcbe4375fa21c313f3.tar.bz2 meta-impy-02913d28b3d9cc8805537afcbe4375fa21c313f3.tar.xz |
RED-552: VWR-12838: NDOF is assumed to exist, even with --standalone.
See http://redmine.imprudenceviewer.org/issues/552
Add FindNDOF.cmake and treat it like every other library (on
standalone).
Diffstat (limited to '')
-rw-r--r-- | linden/indra/cmake/NDOF.cmake | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/linden/indra/cmake/NDOF.cmake b/linden/indra/cmake/NDOF.cmake index dad74e9..bdf5db1 100644 --- a/linden/indra/cmake/NDOF.cmake +++ b/linden/indra/cmake/NDOF.cmake | |||
@@ -1,14 +1,28 @@ | |||
1 | # -*- cmake -*- | 1 | # -*- cmake -*- |
2 | include(Prebuilt) | 2 | include(Prebuilt) |
3 | 3 | ||
4 | use_prebuilt_binary(ndofdev) | 4 | if (STANDALONE) |
5 | include(FindNDOF) | ||
6 | if(NOT NDOF_FOUND) | ||
7 | message(STATUS "Building without N-DoF joystick support") | ||
8 | endif(NOT NDOF_FOUND) | ||
9 | else (STANDALONE) | ||
10 | use_prebuilt_binary(ndofdev) | ||
5 | 11 | ||
6 | if (WINDOWS OR DARWIN OR LINUX) | 12 | if (WINDOWS) |
7 | add_definitions(-DLIB_NDOF=1) | 13 | set(NDOF_LIBRARY libndofdev) |
8 | endif (WINDOWS OR DARWIN OR LINUX) | 14 | elseif (DARWIN OR LINUX) |
15 | set(NDOF_LIBRARY ndofdev) | ||
16 | endif (WINDOWS) | ||
17 | |||
18 | set(NDOF_INCLUDE_DIR ${ARCH_PREBUILT_DIRS}/include/ndofdev) | ||
19 | set(NDOF_FOUND 1) | ||
20 | endif (STANDALONE) | ||
9 | 21 | ||
10 | if (WINDOWS) | 22 | if (NDOF_FOUND) |
11 | set(NDOF_LIBRARY libndofdev) | 23 | add_definitions(-DLIB_NDOF=1) |
12 | elseif (DARWIN OR LINUX) | 24 | include_directories(${NDOF_INCLUDE_DIR}) |
13 | set(NDOF_LIBRARY ndofdev) | 25 | else (NDOF_FOUND) |
14 | endif (WINDOWS) | 26 | set(NDOF_INCLUDE_DIR "") |
27 | set(NDOF_LIBRARY "") | ||
28 | endif (NDOF_FOUND) | ||