Переглянути джерело

Define STATIC_GETOPT to client compilation on Windows

Paul-Louis Ageneau 4 роки тому
батько
коміт
71e5d2bf43
2 змінених файлів з 1 додано та 1 видалено
  1. 1 0
      examples/client/CMakeLists.txt
  2. 0 1
      examples/client/parse_cl.cpp

+ 1 - 0
examples/client/CMakeLists.txt

@@ -5,6 +5,7 @@ endif()
 
 if(WIN32)
 add_executable(datachannel-client main.cpp parse_cl.cpp parse_cl.h getopt.cpp getopt.h)
+target_compile_definitions(datachannel-client PUBLIC STATIC_GETOPT)
 else()
 add_executable(datachannel-client main.cpp parse_cl.cpp parse_cl.h)
 endif()

+ 0 - 1
examples/client/parse_cl.cpp

@@ -20,7 +20,6 @@
 #include <stdlib.h>
 
 #if defined(_WIN32) || defined(WIN32)
-#define STATIC_GETOPT
 #include "getopt.h"
 #else
 #include <getopt.h>