Skip to content

Commit

Permalink
Tested shared library build
Browse files Browse the repository at this point in the history
  • Loading branch information
ihedvall committed Aug 8, 2024
1 parent a417ae9 commit 20c135d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mdflib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_DEBUG_POSTFIX d)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ${BUILD_SHARED_LIBS})

add_library(mdf
src/mdfblock.cpp src/mdfblock.h
Expand Down Expand Up @@ -101,6 +101,8 @@ add_library(mdf
src/mdfconverter.h
)

set(CMAKE_POSITION_INDEPENDENT_CODE ${BUILD_SHARED_LIBS})

if(VCPKG)
find_package(ZLIB REQUIRED)
target_link_libraries(mdf PRIVATE ZLIB::ZLIB)
Expand Down

0 comments on commit 20c135d

Please sign in to comment.