Skip to content

fix build on windows platfrom, use vs2019!#360

Open
von500 wants to merge 1 commit into
FreeOpcUa:masterfrom
von500:master
Open

fix build on windows platfrom, use vs2019!#360
von500 wants to merge 1 commit into
FreeOpcUa:masterfrom
von500:master

Conversation

@von500
Copy link
Copy Markdown

@von500 von500 commented May 24, 2020

when i build project on windows,i find some errors and fixed!

@Waarbubble
Copy link
Copy Markdown

I would suggest that instead of compiling each library as STATIC that you set BUILD_SHARED_LIBRARY=OFF as the default for windows ie. change line 17 in CMakeLists.txt to:
if(WIN32)
option(BUILD_SHARED_LIBS "Build shared libraries." OFF)
else()
option(BUILD_SHARED_LIBS "Build shared libraries." ON)
endif()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants