--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,6 +69,9 @@
   IF (NOT OPENTHREADS_LIBRARY_DEBUG)
     SET(OPENTHREADS_LIBRARY_DEBUG ${OPENTHREADS_LIBRARY})
   ENDIF()
+  IF (NOT OSGSHADOW_LIBRARY_DEBUG)
+    SET(OSGSHADOW_LIBRARY_DEBUG ${OSGSHADOW_LIBRARY})
+  ENDIF()
 ENDIF()
 
 find_package (OpenGL REQUIRED)
