Skip to content

Commit d34e6fc

Browse files
committed
Added ability to build static library.
1 parent d855a80 commit d34e6fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/pdal/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
set(TARGET pdalc)
22

3+
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
4+
35
find_package(PDAL REQUIRED CONFIG)
46
message(STATUS "Found PDAL ${PDAL_VERSION}")
57

@@ -38,7 +40,7 @@ include_directories(
3840

3941
add_definitions(${PDAL_DEFINITIONS})
4042

41-
add_library(${TARGET} SHARED ${SOURCES} ${HEADERS})
43+
add_library(${TARGET} ${SOURCES} ${HEADERS})
4244

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

0 commit comments

Comments
 (0)