diff --git a/CMake/CommonDefinitions.cmake b/CMake/CommonDefinitions.cmake
index 65d06fa59d0fa34257437fdede9815872605875d..b5d2dcf7e2ec36fbf6056a03795735b0df863aba 100644
--- a/CMake/CommonDefinitions.cmake
+++ b/CMake/CommonDefinitions.cmake
@@ -11,14 +11,6 @@ ENDIF(WIN32)
 
 SET(OTB_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
 
-# OSSIM_STATIC macro
-# Using an external static library of ossim is not supported
-IF (WIN32)
-  IF(NOT OTB_BUILD_SHARED_LIBS AND NOT OTB_USE_EXTERNAL_OSSIM)
-    ADD_DEFINITIONS(-DOSSIM_STATIC)
-  ENDIF(NOT OTB_BUILD_SHARED_LIBS AND NOT OTB_USE_EXTERNAL_OSSIM)
-ENDIF (WIN32)
-
 # On Visual Studio 8 MS deprecated C. This removes all 1.276E1265 security
 # warnings
 IF(WIN32)
diff --git a/CMake/ImportOssim.cmake b/CMake/ImportOssim.cmake
index 9f4e37f34f89e190c3cb76f3724e88d5b79b2125..cb25b08a0b2c58646329dbeb6745a66705df82e5 100644
--- a/CMake/ImportOssim.cmake
+++ b/CMake/ImportOssim.cmake
@@ -15,4 +15,7 @@ IF(OTB_USE_EXTERNAL_OSSIM)
   FIND_PACKAGE(Ossim REQUIRED)
 ELSE(OTB_USE_EXTERNAL_OSSIM)
   SET(OSSIM_LIBRARIES otbossim)
+  IF (WIN32 AND NOT BUILD_SHARED_LIBS)
+    ADD_DEFINITIONS(-DOSSIM_STATIC)
+  ENDIF()
 ENDIF(OTB_USE_EXTERNAL_OSSIM)