Skip to content

Commit

Permalink
Build: Don't force shared, fix building as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-gromeyer committed Aug 17, 2023
1 parent 0657fd0 commit 00355a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ if(PYTHON_BINDINGS)
return()
endif()

add_library(html2md SHARED ${SOURCES})
add_library(html2md ${SOURCES})
set_target_properties(html2md PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
PUBLIC_HEADER "${HEADERS}"
)
target_include_directories(html2md PRIVATE include)
target_include_directories(html2md PUBLIC include)
target_compile_features(html2md PUBLIC cxx_std_11) # Require at least c++11

if (subproject OR BUILD_EXE)
Expand Down

0 comments on commit 00355a1

Please sign in to comment.