diff options
author | Nicky <nicky.dasmijn@gmail.com> | 2022-04-10 23:43:15 +0200 |
---|---|---|
committer | Nicky <nicky.dasmijn@gmail.com> | 2022-04-10 23:43:15 +0200 |
commit | 07d388f416b64ad5ea6a79d7dee4bf9e6bab7b74 (patch) | |
tree | 70be39a2e0aec884979dc097159db3e493c166e5 /indra/cmake | |
parent | d01e81f4d122a1f8942f1b296b5d3a4d1cc22ec3 (diff) |
Make LIB_NDOF define part of the targets interface
Diffstat (limited to 'indra/cmake')
-rw-r--r-- | indra/cmake/NDOF.cmake | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/cmake/NDOF.cmake b/indra/cmake/NDOF.cmake index f22e2246aa..7b64b23299 100644 --- a/indra/cmake/NDOF.cmake +++ b/indra/cmake/NDOF.cmake @@ -24,13 +24,11 @@ if (NDOF) elseif (DARWIN OR LINUX) set_target_libraries( ndof::ndof ndofdev) endif (WINDOWS) - set(NDOF_FOUND 1) + target_compile_definitions( ndof::ndof INTERFACE LIB_NDOF=1) endif (USESYSTEMLIBS) endif (NDOF) -if (NDOF_FOUND) - add_definitions(-DLIB_NDOF=1) -else (NDOF_FOUND) +if (NOT NDOF_FOUND) message(STATUS "Building without N-DoF joystick support") -endif (NDOF_FOUND) +endif () |