Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:AL:TW
dcmtk
dcmtk-fix-DCMTKTargets.cmake.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dcmtk-fix-DCMTKTargets.cmake.patch of Package dcmtk
From 6bb5b2b2865b4b57a80d5f801a43453918666d99 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux <christophe@krop.fr> Date: Sat, 23 Jul 2022 09:21:38 +0200 Subject: [PATCH] Don't add executables to exported CMake targets This prevents installing the devel package without requiring the dcmtk utilities. --- CMake/GenerateCMakeExports.cmake | 4 ++-- CMake/dcmtkMacros.cmake | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMake/GenerateCMakeExports.cmake b/CMake/GenerateCMakeExports.cmake index 4512624..11205e3 100644 --- a/CMake/GenerateCMakeExports.cmake +++ b/CMake/GenerateCMakeExports.cmake @@ -18,8 +18,8 @@ file(WRITE "${CMAKE_BINARY_DIR}/DCMTKTargets.cmake" "") # Get and store all executable targets to DCMTKTargets.cmake within build's main dir -get_property(DCMTK_EXECUTABLE_TARGETS GLOBAL PROPERTY DCMTK_EXECUTABLE_TARGETS) -export(TARGETS ${DCMTK_EXECUTABLE_TARGETS} APPEND FILE "${CMAKE_BINARY_DIR}/DCMTKTargets.cmake" NAMESPACE DCMTK::) +#get_property(DCMTK_EXECUTABLE_TARGETS GLOBAL PROPERTY DCMTK_EXECUTABLE_TARGETS) +#export(TARGETS ${DCMTK_EXECUTABLE_TARGETS} APPEND FILE "${CMAKE_BINARY_DIR}/DCMTKTargets.cmake" NAMESPACE DCMTK::) # Get and store libraries to DCMTKTargets.cmake within the build's main dir get_property(DCMTK_LIBRARY_TARGETS GLOBAL PROPERTY DCMTK_LIBRARY_TARGETS) diff --git a/CMake/dcmtkMacros.cmake b/CMake/dcmtkMacros.cmake index 6cbce0a..0844e58 100644 --- a/CMake/dcmtkMacros.cmake +++ b/CMake/dcmtkMacros.cmake @@ -64,7 +64,7 @@ macro(DCMTK_ADD_EXECUTABLE PROGRAM) # declare installation files, also export DCMTKTargets.cmake install(TARGETS ${PROGRAM} - EXPORT DCMTKTargets + # EXPORT DCMTKTargets COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() -- 2.37.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor