Skip to content

Commit

Permalink
Added ability to build static library.
Browse files Browse the repository at this point in the history
  • Loading branch information
metasim committed Mar 13, 2024
1 parent d855a80 commit d34e6fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/pdal/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
set(TARGET pdalc)

option(BUILD_SHARED_LIBS "Build using shared libraries" ON)

find_package(PDAL REQUIRED CONFIG)
message(STATUS "Found PDAL ${PDAL_VERSION}")

Expand Down Expand Up @@ -38,7 +40,7 @@ include_directories(

add_definitions(${PDAL_DEFINITIONS})

add_library(${TARGET} SHARED ${SOURCES} ${HEADERS})
add_library(${TARGET} ${SOURCES} ${HEADERS})

string(TOUPPER "${TARGET}_BUILD_DLL" BUILD_SYMBOL)

Expand Down

0 comments on commit d34e6fc

Please sign in to comment.