I don't understand this code. Why not replace l 35..44 with:
```
    if (${NAME}_INCLUDE_DIRECTORIES)
       set_target_properties(${NAME} PROPERTIES
         INCLUDE_DIRECTORIES "${${NAME}_INCLUDE_DIRECTORIES}")
     endif()
```
?