Bug #1205
openBuilding of a single shared library fails
0%
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