diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-01-16 18:14:41 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-01-16 18:14:41 +0100 |
| commit | 323d525591438ab8937edf0e1ff522d4a4af45c2 (patch) | |
| tree | 62c34297e675bc4a77091832c3af35db40d959ea /CMake/setup.cmake | |
| parent | a6f51105d0ae19e693f272cec657451d51d291f9 (diff) | |
MSYS2: Correctly detect ucrt64 environment (PR #1167)
This fix is different than the proposed PR.
The PR will be closed and not merged.
Closes #1167.
Diffstat (limited to 'CMake/setup.cmake')
| -rw-r--r-- | CMake/setup.cmake | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/CMake/setup.cmake b/CMake/setup.cmake index d4ee85e0b..266e1299a 100644 --- a/CMake/setup.cmake +++ b/CMake/setup.cmake @@ -2,7 +2,7 @@ # CMakeLists.txt to build the FLTK project using CMake (www.cmake.org) # Originally written by Michael Surette # -# Copyright 1998-2024 by Bill Spitzak and others. +# Copyright 1998-2025 by Bill Spitzak and others. # # This library is free software. Distribution and use rights are outlined in # the file "COPYING" which should have been included with this file. If this @@ -169,9 +169,14 @@ if(WIN32) endif() set(BORDER_WIDTH 2) endif(MSVC) - if(MINGW AND EXISTS /mingw) - list(APPEND CMAKE_PREFIX_PATH /mingw) - endif(MINGW AND EXISTS /mingw) + + # Don't use the following code, it breaks building with MSYS2/UCRT64 + # See GitHub PR #1167. Solution is to remove the entire block! + + ### if(MINGW AND EXISTS /mingw) + ### list(APPEND CMAKE_PREFIX_PATH /mingw) + ### endif(MINGW AND EXISTS /mingw) + endif(WIN32) ####################################################################### |
