From Bootz, 11 Months ago, written in Plain Text.
Embed
  1. Cmake is not adding mysql into build (resulting in massive object linking errors)...
  2.  
  3. cmake configuration output:
  4.                     MySQL: Disabled supplied MySQL sources
  5.                     Use MySQL sourcetree   : No
  6.  
  7. ...even if the option set to use mysql source tree
  8.     and is enabled in cmake settings this voids it:
  9.  
  10. cause of this option override: 
  11. ...\cmake\platform\win\settings.cmake
  12. lines: 21-24
  13.  
  14. if((MSVC_VERSION EQUAL 1900) OR (MSVC_VERSION GREATER 1900))
  15.   set( USE_MYSQL_SOURCES 0 )
  16.   message(STATUS "MySQL: Disabled supplied MySQL sources")
  17. endif((MSVC_VERSION EQUAL 1900) OR (MSVC_VERSION GREATER 1900))
  18.  
  19.  
  20. removing this, will fix the options "On"/"Off" for mysql in cmake, but
  21. will cause other errors in windows.kits ( compile time errors )
  22.  
  23. error: C1189
  24. # of errors 158
  25. ...\Windows Kits\10\Include\10.0.15063.0\ucrt\stdio.h
  26. line: 1933
  27.  
  28.     #if defined snprintf
  29.         // This definition of snprintf will generate "warning C4005: 'snprintf': macro
  30.         // redefinition" with a subsequent line indicating where the previous definition
  31.         // of snprintf was.  This makes it easier to find where snprintf was defined.
  32.         #pragma warning(push, 1)
  33.         #pragma warning(1: 4005)
  34.         #define snprintf Do not define snprintf as a macro
  35.         #pragma warning(pop)
  36.         #error Macro definition of snprintf conflicts with Standard Library function declaration
  37.     #endif
  38.  
  39. this creates an error not a warning...
  40.        
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.