diff options
Diffstat (limited to 'vcpkg/ports/itk/rtk/cmp0153.diff')
| -rw-r--r-- | vcpkg/ports/itk/rtk/cmp0153.diff | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcpkg/ports/itk/rtk/cmp0153.diff b/vcpkg/ports/itk/rtk/cmp0153.diff new file mode 100644 index 0000000..74ffca1 --- /dev/null +++ b/vcpkg/ports/itk/rtk/cmp0153.diff @@ -0,0 +1,12 @@ +diff --git a/cmake/FindGengetopt.cmake b/cmake/FindGengetopt.cmake +index b7bbfcc..9011e41 100644 +--- a/cmake/FindGengetopt.cmake ++++ b/cmake/FindGengetopt.cmake +@@ -72,6 +72,7 @@ macro (WRAP_GGO GGO_SRCS) + set_source_files_properties(${${GGO_SRCS}} PROPERTIES GENERATED TRUE) + if(CMAKE_COMPILER_IS_GNUCXX) + find_program(DEFAULT_GCC gcc) ++ cmake_policy(SET CMP0153 OLD) + exec_program(${DEFAULT_GCC} ARGS "-dumpversion" OUTPUT_VARIABLE GCCVER) + if("${GCCVER}" VERSION_GREATER "4.5.2") + set_source_files_properties(${${GGO_SRCS}} PROPERTIES COMPILE_FLAGS "-Wno-unused-but-set-variable") |