You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FetchContent_Declare(CppLinuxSerial # name of the content
GIT_REPOSITORY https://github.com/gbmhunter/CppLinuxSerial.git # the repository
GIT_TAG master # the tag
)
if(NOT CppLinuxSerial_POPULATED)
FetchContent_Populate(CppLinuxSerial)
add_subdirectory(${cpplinuxserial_SOURCE_DIR}${cpplinuxserial_BINARY_DIR}EXCLUDE_FROM_ALL)
endif()
FetchContent_MakeAvailable(CppLinuxSerial)
message("CppLinuxSerial fetched")
With master, now I have
/home/triccyx/Documents/mini/ENRG_GR02905_BITRON_OCPP_LIBRARY/build/_deps/cpplinuxserial-src/include/CppLinuxSerial/SerialPort.hpp:123:51: error: ‘speed_t’ has not been declared
123 | SerialPort(const std::string &device, speed_t baudRate);
If I switch to tag=v2.8.2 all is ok.
The text was updated successfully, but these errors were encountered:
In my cmake:
With master, now I have
If I switch to tag=v2.8.2 all is ok.
The text was updated successfully, but these errors were encountered: