View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002465 | Slicer4 | Core: Building (CMake, Superbuild) | public | 2012-09-03 08:13 | 2012-10-24 05:58 |
Reporter | jcfr | Assigned To | sankhesh | ||
Priority | urgent | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | |||||
Target Version | Slicer 4.2.0 | Fixed in Version | Slicer 4.2.0 | ||
Summary | 0002465: SlicerConfig - Ensure CMake search path specific to external project are added in order | ||||
Description | Looking at SlicerConfig [1], we can see that the CMake search path is updated after all calls to "find_package" have been done. Since CTK provide a custom findDCMTK.cmake, the CMake search path should be updated after each external project "find_package" has been done. That was, assuming CTK project is included before DCMTK, it will allow the appropriate DCMTK module to be used. The solution could be implemented as described below: Line 344 before the foreach look in charge of calling "find_package...", variable like the following one could be set: set(Slicer_VTK_CMAKE_MODULE_PATHS "${VTK_CMAKE_DIR}") After "find_package(${proj} REQUIRED)" (line 347), the following could be added: if(DEFINED Slicer_<projectname>_CMAKE_MODULEPATHS) Update CMake module path
endforeach() [1] https://github.com/Slicer/Slicer/blob/master/CMake/SlicerConfig.cmake.in#L358 | ||||
Tags | No tags attached. | ||||
This commit fixes the issue: |
|
See comments: https://github.com/sankhesh/Slicer/commit/7641ee086447080d1e8b4be8dfa0ad9851f6787e#commitcomment-1902919 |
|
Addressed the comments in this commit: |
|
Please squash commits. Only one commit should end up in Slicer. Thnaks |
|
Fixed in r21070 |
|
Fixed indent and comments in r21071 |
|
Reporting extension is no longer building, not finding the CTK CMake directory with ctkMacroCompilePythonScript.cmake: CMake Error at /projects/birn/nicole/Slicer4/Slicer4/CMake/SlicerMacroPythonWrapModuleVTKLibrary.cmake:86 (include):
Call Stack (most recent call first): CMake Error at /projects/birn/nicole/Slicer4/Slicer4/CMake/SlicerMacroPythonWrapModuleVTKLibrary.cmake:87 (ctkMacroCompilePythonScript): Dashboard: |
|
FYI - Just tried to build Reporting extension against my Slicer build tree and seems there are no issues. What I did to build the extension: git clone git://github.com/fedorov/Reporting.git |
|
Nicole: This branch should fix the issue. Can you test it: |
|
That works for me, thanks! |
|
Fixed in r21073 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-09-03 08:13 | jcfr | New Issue | |
2012-09-03 08:13 | jcfr | Status | new => assigned |
2012-09-03 08:13 | jcfr | Assigned To | => jcfr |
2012-09-03 08:14 | jcfr | Assigned To | jcfr => sankhesh |
2012-09-03 08:14 | jcfr | Target Version | => Slicer 4.2.0 - Feature freeze Sept 1st 2012 |
2012-09-25 08:52 | sankhesh | Note Added: 0006203 | |
2012-09-25 09:17 | jcfr | Note Added: 0006204 | |
2012-09-25 09:58 | sankhesh | Note Added: 0006205 | |
2012-09-25 10:00 | sankhesh | Note Edited: 0006205 | |
2012-09-25 10:14 | jcfr | Note Added: 0006206 | |
2012-09-27 12:46 | sankhesh | Status | assigned => resolved |
2012-09-27 12:46 | sankhesh | Resolution | open => fixed |
2012-09-27 13:18 | jcfr | Note Added: 0006252 | |
2012-09-27 13:20 | jcfr | Note Added: 0006253 | |
2012-09-28 06:16 | nicole | Note Added: 0006260 | |
2012-09-28 06:16 | nicole | Status | resolved => feedback |
2012-09-28 06:16 | nicole | Resolution | fixed => reopened |
2012-09-28 06:21 | jcfr | Priority | normal => immediate |
2012-09-28 06:21 | jcfr | Status | feedback => assigned |
2012-09-28 06:22 | jcfr | Priority | immediate => urgent |
2012-09-28 06:27 | nicole | Note Edited: 0006260 | |
2012-09-28 06:27 | jcfr | Note Added: 0006261 | |
2012-09-28 06:29 | jcfr | Note Edited: 0006261 | |
2012-09-28 07:37 | sankhesh | Note Added: 0006263 | |
2012-09-28 07:53 | nicole | Note Added: 0006264 | |
2012-09-28 08:13 | sankhesh | Note Added: 0006265 | |
2012-09-28 08:13 | sankhesh | Status | assigned => resolved |
2012-09-28 08:13 | sankhesh | Resolution | reopened => fixed |
2012-10-24 05:58 | jcfr | Status | resolved => closed |
2012-10-24 05:58 | jcfr | Fixed in Version | => Slicer 4.2.0 - coming release |