Diff of /tools/CMakeLists.txt [17b940] .. [bb55bf] Maximize Restore

  Switch to side-by-side view

--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -17,6 +17,10 @@
 
 if(WIN32)
   list(APPEND commands panoinfo)
+  IF(BUILD_DLL)
+    add_library(getopt STATIC compat_win32/getopt.c compat_win32/getopt.h)
+    list(APPEND _common_libs getopt)
+  ENDIF(BUILD_DLL)
 endif()
 
 include_directories(${TOP_SRC_DIR})