more cmake/x11 edits
[blender.git] / build_files / cmake / macros.cmake
index c53f52b7bae6134dbfc05a8c294d79d0b43a4a12..ed200abd4195a016212dfaadbc8b915fff448276 100644 (file)
@@ -193,9 +193,6 @@ macro(SETUP_LIBDIRS)
        if(WITH_MEM_JEMALLOC)
                link_directories(${JEMALLOC_LIBPATH})
        endif()
-       if(WITH_INPUT_NDOF)
-               link_directories(${NDOF_LIBPATH})
-       endif()
 
        if(WIN32 AND NOT UNIX)
                link_directories(${PTHREADS_LIBPATH})
@@ -318,7 +315,7 @@ macro(setup_liblinks
                target_link_libraries(${target} ${JEMALLOC_LIBRARIES})
        endif()
        if(WITH_INPUT_NDOF)
-               target_link_libraries(${target} ${NDOF_LIBRARY})
+               target_link_libraries(${target} ${NDOF_LIBRARIES})
        endif()
 
        if(WIN32 AND NOT UNIX)