Commit 7bae68ae authored by GILLES Sebastien's avatar GILLES Sebastien

#1341 Avoid warning when there are no compile definition to propagate.

parent 86b8c016
......@@ -13,9 +13,12 @@ if(NOT TARGET @PROJECT_NAME@)
get_target_property(@PROJECT_NAME@_INCLUDE_DIRS morefem_cmake INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_COMPILE_DEFINITION morefem_cmake INTERFACE_COMPILE_DEFINITIONS)
foreach(item ${MoReFEM_COMPILE_DEFINITION})
add_definitions(-D${item})
endforeach()
if (${MoReFEM_COMPILE_DEFINITION})
foreach(item ${MoReFEM_COMPILE_DEFINITION})
add_definitions(-D${item})
endforeach()
endif()
include("${CMAKE_CURRENT_LIST_DIR}/CustomCommands.cmake")
endif()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment