From 24482499ea5cfc1a55015456dada84da5124b3cd Mon Sep 17 00:00:00 2001 From: Lemures Lemniscati Date: Sat, 1 Aug 2020 21:21:21 +0900 Subject: FindPerlLibs: Add versioned perl library name for Cygwin Based on downstream patch from Cygwin package for CMake by Marco Atzeri: * https://github.com/matzeri/cygwin-pkg/blob/64864eb8f0d635ea44226e4b9a41a7ca59a1c7dd/cmake/perl-libs.patch --- Modules/FindPerlLibs.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake index 7e27f31..d576b86 100644 --- a/Modules/FindPerlLibs.cmake +++ b/Modules/FindPerlLibs.cmake @@ -108,6 +108,9 @@ if (PERL_EXECUTABLE) if (NOT PERL_POSSIBLE_LIBRARY_NAMES) set(PERL_POSSIBLE_LIBRARY_NAMES perl${PERL_VERSION_STRING} perl) endif() + if(CMAKE_SYSTEM_NAME MATCHES "CYGWIN") + list (APPEND PERL_POSSIBLE_LIBRARY_NAMES perl${PERL_VERSION_STRING}) + endif() if (CMAKE_SYSTEM_NAME MATCHES "MSYS|CYGWIN") # on MSYS and CYGWIN environments, current perl -V:libperl gives shared library name # rather than the import library. So, extends possible library names -- cgit v0.12 From 8edbc59e4655cb791328d27a76f37d0c8a2973ac Mon Sep 17 00:00:00 2001 From: Lemures Lemniscati Date: Sat, 1 Aug 2020 21:21:22 +0900 Subject: install: Use case-sensitive pattern matching on Cygwin Based on downstream patch from Cygwin package for CMake by Marco Atzeri: * https://github.com/matzeri/cygwin-pkg/blob/64864eb8f0d635ea44226e4b9a41a7ca59a1c7dd/cmake/3.17.3-case-sensitivity.patch --- Source/cmInstallCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index ddd6c22..83609e2 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -1157,7 +1157,7 @@ bool HandleDirectoryMode(std::vector const& args, } else if (doing == DoingRegex) { literal_args += " REGEX \""; // Match rules are case-insensitive on some platforms. -#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) +#if defined(_WIN32) || defined(__APPLE__) std::string regex = cmSystemTools::LowerCase(args[i]); #else std::string regex = args[i]; -- cgit v0.12 From af666acdf4a73323c750f2332c35e38f5b8f4cea Mon Sep 17 00:00:00 2001 From: Lemures Lemniscati Date: Sat, 1 Aug 2020 21:21:23 +0900 Subject: FindOpenGL: Drop Cygwin-specific behavior and use POSIX code path Based on downstream patch from Cygwin package for CMake by Marco Atzeri: * https://github.com/matzeri/cygwin-pkg/blob/64864eb8f0d635ea44226e4b9a41a7ca59a1c7dd/cmake/3.17.3-opengl.patch --- Modules/FindOpenGL.cmake | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake index 74392da..e1271d4 100644 --- a/Modules/FindOpenGL.cmake +++ b/Modules/FindOpenGL.cmake @@ -132,19 +132,7 @@ endforeach() set(_OpenGL_CACHE_VARS) -if (CYGWIN) - find_path(OPENGL_INCLUDE_DIR GL/gl.h ) - list(APPEND _OpenGL_REQUIRED_VARS OPENGL_INCLUDE_DIR) - - find_library(OPENGL_gl_LIBRARY opengl32 ) - find_library(OPENGL_glu_LIBRARY glu32 ) - - list(APPEND _OpenGL_CACHE_VARS - OPENGL_INCLUDE_DIR - OPENGL_gl_LIBRARY - OPENGL_glu_LIBRARY - ) -elseif (WIN32) +if (WIN32) if(BORLAND) set (OPENGL_gl_LIBRARY import32 CACHE STRING "OpenGL library for win32") -- cgit v0.12 From ecc19617686f29429e9b4dd10ff2bbc8e8572d5e Mon Sep 17 00:00:00 2001 From: Lemures Lemniscati Date: Sat, 1 Aug 2020 21:21:24 +0900 Subject: FindTclsh: Drop Cygwin-specific behavior and use POSIX code path Based on downstream patch from Cygwin package for CMake by Marco Atzeri: * https://github.com/matzeri/cygwin-pkg/blob/64864eb8f0d635ea44226e4b9a41a7ca59a1c7dd/cmake/3.17.3-findtclsh.patch --- Modules/FindTclsh.cmake | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Modules/FindTclsh.cmake b/Modules/FindTclsh.cmake index 82be473..f306d5b 100644 --- a/Modules/FindTclsh.cmake +++ b/Modules/FindTclsh.cmake @@ -15,15 +15,8 @@ library is. This code sets the following variables: TCLSH_FOUND = TRUE if tclsh has been found TCL_TCLSH = the path to the tclsh executable - -In cygwin, look for the cygwin version first. Don't look for it later -to avoid finding the cygwin version on a Win32 build. #]=======================================================================] -if(CYGWIN) - find_program(TCL_TCLSH NAMES cygtclsh83 cygtclsh80) -endif() - get_filename_component(TK_WISH_PATH "${TK_WISH}" PATH) get_filename_component(TK_WISH_PATH_PARENT "${TK_WISH_PATH}" PATH) string(REGEX REPLACE -- cgit v0.12