소스 검색

Fix propagation of UA_ARCHITECTURE_* to install

Christian von Arnim 6 년 전
부모
커밋
39c927f306
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -838,6 +838,8 @@ endif(NOT "${ua_architecture_remove_definitions}" STREQUAL "")
 GET_PROPERTY(ua_architecture_append_to_library GLOBAL PROPERTY UA_ARCHITECTURE_APPEND_TO_LIBRARY)
 list(APPEND open62541_LIBRARIES ${ua_architecture_append_to_library})
 
+target_compile_definitions(open62541 PUBLIC UA_ARCHITECTURE_${UA_ARCHITECTURE_UPPER})
+
 # DLL requires linking to dependencies
 target_link_libraries(open62541 ${open62541_LIBRARIES})