Project

General

Profile

Actions

Bug #1205

open

Building of a single shared library fails

Added by Harald Roesen about 13 hours ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Configuration
Target version:
Start date:
2026-05-04
Due date:
% Done:

0%

Estimated time:
Module:
Operating System:
Compiler:

Description

As stated in the current INSTALL file, it should be possible to build DCMTK as a single shared library:

Additionally, it is possible to produce a single shared library for the whole
toolkit. This mode is controlled by the "BUILD_SINGLE_SHARED_LIBRARY" option.
<<

However both commands

cmake -S . -B ../build -DBUILD_SHARED_LIBS:BOOL=True -DBUILD_SINGLE_SHARED_LIBRARY:BOOL=True
cmake -S. -B ../build -DBUILD_SINGLE_SHARED_LIBRARY:BOOL=True

lead to the following error:

CMake Error at dcmdata/tests/CMakeLists.txt:42 (target_include_directories):
Cannot specify include directories for target "dcmdata_tests" which is not
built by this project.

CMake Error at CMake/dcmtkAfterModules.cmake:14 (target_link_libraries):
The INTERFACE, PUBLIC or PRIVATE option must appear as the second argument,
just after the target name.
Call Stack (most recent call first):
CMakeLists.txt:101 (include)
<<

CMake versions used: 3.22.1; 4.2.2

No data to display

Actions

Also available in: Atom PDF