Commit d5cb04b
BUG: Fix itk_expat.h not found when ITK_USE_SYSTEM_EXPAT is ON
Commit bfc8e07 moved the configured itk_expat.h output from
${ITKExpat_BINARY_DIR}/src/ to ${ITKExpat_BINARY_DIR}/ and updated
the vendored (ITK_USE_SYSTEM_EXPAT=OFF) include path to match, but
the system-expat branch still pointed at the old src/ subdirectory.
This caused a fatal error in gdcm_expat.h when building with
ITK_USE_SYSTEM_EXPAT=ON (or ITK_USE_SYSTEM_LIBRARIES=ON):
fatal error: 'itk_expat.h' file not found
Fix: update ITKExpat_INCLUDE_DIRS in the system-expat branch to
${ITKExpat_BINARY_DIR} where itk_expat.h is now generated.
Also remove any stale src/itk_expat.h left over from builds
predating bfc8e07 so that incremental builds do not pick up the
old copy.
Reported-by: Sean McBride (@seanm) in PR InsightSoftwareConsortium#5838
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 19eb086 commit d5cb04b
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
0 commit comments