Skip to content

Commit c94a206

Browse files
committed
ENH: Vendor SharedForward which was removed from KWSys
Removal commit from KWSys: https://gitlab.kitware.com/utils/kwsys/-/commit/46f47034a29cd3a04b861eee2b4c69aa87ba66b4
1 parent bd2efa9 commit c94a206

File tree

3 files changed

+879
-1
lines changed

3 files changed

+879
-1
lines changed

GenerateCLP/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ configure_file(
211211
${CMAKE_CURRENT_SOURCE_DIR}/GenerateCLPLauncher.c.in
212212
${GenerateCLPLauncher_SOURCE}
213213
@ONLY)
214+
set(KWSYS_NAMESPACE itksys)
215+
configure_file(
216+
${CMAKE_CURRENT_SOURCE_DIR}/SharedForward.h.in
217+
${CMAKE_CURRENT_BINARY_DIR}/SharedForward.h
218+
@ONLY)
214219
add_custom_command(TARGET GenerateCLP POST_BUILD
215220
COMMAND ${CMAKE_COMMAND} -E touch ${GenerateCLPLauncher_SOURCE}
216221
COMMENT "Force GenerateCLPLauncher to rebuild after GenerateCLP was modified"

GenerateCLP/GenerateCLPLauncher.c.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define itksys_SHARED_FORWARD_OPTION_PRINT "--print"
1717
#define itksys_SHARED_FORWARD_OPTION_LDD "--ldd"
1818

19-
#include <itksys/SharedForward.h>
19+
#include "SharedForward.h"
2020

2121
int main(int argc, char *argv[])
2222
{

0 commit comments

Comments
 (0)