message: Add public target definition for ENOKI_ENABLE_JIT and ENOKI_ENABLE_AUTODIFF variables
diff: @@ -72,7 +72,7 @@ endif()
  if (ENOKI_ENABLE_JIT)
  message(STATUS "Enoki: building the CUDA & LLVM JIT backend.")
  add_subdirectory(ext/enoki-jit)
  - add_definitions(-DENOKI_ENABLE_JIT=1)
  + target_compile_definitions(enoki-jit PUBLIC -DENOKI_ENABLE_JIT=1)
  set_target_properties(enoki-jit PROPERTIES ${ENOKI_OUTPUT_DIRECTORY})
  else()
  message(STATUS "Enoki: *not* building the CUDA & LLVM JIT backend.")
  @@ -91,8 +91,8 @@ endif()
  if (ENOKI_ENABLE_AUTODIFF)
  message(STATUS "Enoki: building the autodiff backend.")
  - add_definitions(-DENOKI_ENABLE_AUTODIFF=1)
  add_subdirectory(src/autodiff)
  + target_compile_definitions(enoki-autodiff PUBLIC -DENOKI_ENABLE_AUTODIFF=1)
  set_target_properties(enoki-autodiff PROPERTIES ${ENOKI_OUTPUT_DIRECTORY})
  else()
  message(STATUS "Enoki: *not* building the autodiff backend.")
  