Skip to content
Snippets Groups Projects
Commit 4ef147f2 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH: remove non mandatory add_dependencies for header tests to avoid non-existent dependency

parent f1562b5f
No related branches found
No related tags found
2 merge requests!621Release 7.0 (master),!295Update deprecated cmake policies to NEW
......@@ -131,13 +131,11 @@ macro( otb_module_headertest _name )
)
add_executable( ${_test_name} ${_header_test_src} )
target_link_libraries( ${_test_name} OTBCommon )
if (${_name}_LIBRARIES)
# OTBBoostAdapters depends only on OTBBoost,
# and OTBBoost_LIBRARIES can be empty, so check for it
add_dependencies(${_test_name} ${${_name}_LIBRARIES})
# this target_link should be needed only on WIN32
target_link_libraries(${_test_name} ${${_name}_LIBRARIES})
endif()
add_dependencies(${_name}-all ${_test_name})
math( EXPR _test_num "${_test_num} + 1" )
endforeach()
......
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