From 34c78d46d34db6e5d9f6610693aa12ef8c9792f9 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Wed, 4 Mar 2015 19:04:44 +0100
Subject: [PATCH] COMP: VC10: header tests actually need some symbols

---
 CMake/OTBModuleHeaderTest.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CMake/OTBModuleHeaderTest.cmake b/CMake/OTBModuleHeaderTest.cmake
index f67bfae0e8..17587f1d30 100644
--- a/CMake/OTBModuleHeaderTest.cmake
+++ b/CMake/OTBModuleHeaderTest.cmake
@@ -90,6 +90,8 @@ macro( otb_module_headertest _name )
         # 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" )
-- 
GitLab