Skip to content

Commit

Permalink
fix(build): Enable building static library on Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Nov 6, 2024
1 parent 1626459 commit 2bc6d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ if(UA_ENABLE_AMALGAMATION)
open62541-generator-statuscode
open62541-amalgamation-source)

add_library(open62541 SHARED $<TARGET_OBJECTS:open62541-object>)
add_library(open62541 $<TARGET_OBJECTS:open62541-object>)
# the only directory that needs to be included if open62541 (amalgameted) target from
# the build directory is ${PROJECT_BINARY_DIR}, that contains the generated open62541.h
target_include_directories(open62541 PUBLIC $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}>)
Expand Down

0 comments on commit 2bc6d79

Please sign in to comment.