Project

General

Profile

Actions

Patch #708

closed

DCMTKConfigVersion.cmake not present in install

Added by Waldir Pimenta over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Configuration
Target version:
Start date:
2017-01-02
Due date:
% Done:

0%

Estimated time:
Module:
CMake
Operating System:
Compiler:

Description

When locally building DCMTK, both DCMTKConfig.cmake and DCMTKConfigVersion.cmake are generated in the build directory. However, when doing make install, only DCMTKConfig.cmake is copied to the install directory, which makes the use of the library in other CMake-based projects fail if a version is passed to find_package().

After some investigation, I found the issue to be a capitalization mistake: in CMake/GenerateCMakeExports.cmake the version file is stored in the DCMTK_CONFIG_VERSION variable, while CMakeLists.txt looks for it in ${dcmtk_config_version}.

The attached patch fixes this issue (tested locally, works without issues) and adjusts the comments in CMakeLists.txt accordingly.


Files

Actions

Also available in: Atom PDF