Refinitiv / Real-Time-SDK

Other
186 stars 129 forks source link

`addExternal_zlib` CMake syntax warning #245

Closed OleksandrKvl closed 5 months ago

OleksandrKvl commented 1 year ago

I get annoying CMake syntax warning from addExternal_zlib.cmake:188:

    \"\\\\1\" ZLIB_FULL_VERSION "\${_zlib_h_contents}")
[cmake] CMake Warning (dev) at build_Debug/_deps/rtsdk-src/CMake/addExternal_zlib.cmake:188:
[cmake]   Syntax Warning in cmake code at column 34
[cmake] 
[cmake]   Argument not separated from preceding token by whitespace.

Not sure what you are doing there but escaping quotes like this helps:

    \"\\\\1\" ZLIB_FULL_VERSION \"\${_zlib_h_contents}\")
vlevendel commented 1 year ago

Thank you for providing feedback. Which version of CMake are you using?

OleksandrKvl commented 1 year ago

It's CMake 3.20.3

vlevendel commented 5 months ago

RTSDK 2.2.0.L1 addresses this issue. Please let us know if you have further concerns. Closing.