diff --git a/doc/building.rst b/doc/building.rst index 0708acb97b5..8c47e39386e 100644 --- a/doc/building.rst +++ b/doc/building.rst @@ -53,10 +53,8 @@ In your own CMake project you can then include the open62541 library using: .. code-block:: cmake - # optionally you can also specify a specific version - # e.g. find_package(open62541 1.0.0) - find_package(open62541 REQUIRED COMPONENTS Events FullNamespace) - add_executable(main main.cpp) + find_package(open62541 REQUIRED) + add_executable(main main.c) target_link_libraries(main open62541::open62541) Building with CMake on Windows