Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
491 stars 193 forks source link

VS2019 64bit Compile Error:std::numeric_limits<uint32_t>::max() #228

Open hywing opened 1 month ago

hywing commented 1 month ago

How about adding a macro definition in top CMake File to avoid such error?

Here is the code in line 18-20

elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
    add_definitions(-DNOMINMAX)
endif()