Skip to content
Snippets Groups Projects
Commit 07d388f4 authored by Nicky's avatar Nicky
Browse files

Make LIB_NDOF define part of the targets interface

parent d01e81f4
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -24,13 +24,11 @@ if (NDOF) ...@@ -24,13 +24,11 @@ if (NDOF)
elseif (DARWIN OR LINUX) elseif (DARWIN OR LINUX)
set_target_libraries( ndof::ndof ndofdev) set_target_libraries( ndof::ndof ndofdev)
endif (WINDOWS) endif (WINDOWS)
set(NDOF_FOUND 1) target_compile_definitions( ndof::ndof INTERFACE LIB_NDOF=1)
endif (USESYSTEMLIBS) endif (USESYSTEMLIBS)
endif (NDOF) endif (NDOF)
if (NDOF_FOUND) if (NOT NDOF_FOUND)
add_definitions(-DLIB_NDOF=1)
else (NDOF_FOUND)
message(STATUS "Building without N-DoF joystick support") message(STATUS "Building without N-DoF joystick support")
endif (NDOF_FOUND) endif ()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment