summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-04-10 23:43:15 +0200
committerNicky <nicky.dasmijn@gmail.com>2022-04-10 23:43:15 +0200
commit07d388f416b64ad5ea6a79d7dee4bf9e6bab7b74 (patch)
tree70be39a2e0aec884979dc097159db3e493c166e5
parentd01e81f4d122a1f8942f1b296b5d3a4d1cc22ec3 (diff)
Make LIB_NDOF define part of the targets interface
-rw-r--r--indra/cmake/NDOF.cmake8
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 ()