Pārlūkot izejas kodu

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

Julius Pfrommer 5 gadi atpakaļ
vecāks
revīzija
e97abd591a
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  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()