Explorar o código

ci: Plugins depend on generated `nodeids.h`

Sometimes travis failed with
```
/home/travis/build/open62541/open62541/build/src_generated/open62541/nodeids.h:6:0: error: unterminated #ifndef

 #ifndef UA_NODEIDS_NS0_H_

 ^
```
if the plugins object was created before namespace generation finished.
Stefan Profanter %!s(int64=5) %!d(string=hai) anos
pai
achega
0ae41f47cf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -971,7 +971,7 @@ else()
     target_include_directories(open62541-object PRIVATE ${PROJECT_SOURCE_DIR}/src)
 
     add_library(open62541-plugins OBJECT ${default_plugin_sources} ${ua_architecture_sources} ${exported_headers})
-    add_dependencies(open62541-plugins open62541-generator-types open62541-generator-transport)
+    add_dependencies(open62541-plugins open62541-generator-types open62541-generator-transport open62541-generator-namespace)
     target_include_directories(open62541-plugins PRIVATE ${PROJECT_SOURCE_DIR}/plugins)
     target_include_directories(open62541-plugins PRIVATE ${PROJECT_BINARY_DIR}/src_generated)
     target_compile_definitions(open62541-plugins PRIVATE -DUA_DYNAMIC_LINKING_EXPORT)