瀏覽代碼

fix(core): Install dependencies to /include instead of /include/open62541

Julius Pfrommer 5 年之前
父節點
當前提交
e97abd591a
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      CMakeLists.txt

+ 5 - 1
CMakeLists.txt

@@ -1297,7 +1297,11 @@ if(NOT UA_ENABLE_AMALGAMATION)
         string(REPLACE ${BASE_PATH_DEPS} "" file ${file})
 
         get_filename_component( dir ${file} DIRECTORY )
-        install( FILES ${full_path} DESTINATION include/open62541${dir} )
+        if(${full_path} MATCHES "deps")
+            install( FILES ${full_path} DESTINATION include${dir} )
+        else()
+            install( FILES ${full_path} DESTINATION include/open62541${dir} )
+        endif()
     endforeach()
 
 else()