From d8acd00dff8b89d5a01cf3a24c58b1c7ea5ee99d Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Mon, 8 Apr 2024 12:44:30 +0200 Subject: CMake: Removed manual RC-compiler setup for MinGW Works without in MSYS2, at least. --- src/CMakeLists.txt | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 91afadb1..b7300e46 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -81,22 +81,6 @@ INCLUDE_DIRECTORIES( ${GUICHAN_INCLUDE_DIR} ) -# enable rc-handling with mingw -# most likely this part can be kicked out with some later cmake version -IF (MINGW) - FIND_PATH(MINGW_INCLUDE_DIR windows.h $ENV{INCLUDE}) - IF (MINGW_INCLUDE_DIR) - MESSAGE(STATUS "Found mingw headers: ${MINGW_INCLUDE_DIR}") - INCLUDE_DIRECTORIES(${MINGW_INCLUDE_DIR}) - ELSE() - MESSAGE(FATAL_ERROR "Unable to find mingw headers. Required for windres") - ENDIF() - SET(CMAKE_RC_COMPILER_INIT windres) - ENABLE_LANGUAGE(RC) - SET(CMAKE_RC_COMPILE_OBJECT - " -O coff -o ") -ENDIF() - SET(SRCS gui/widgets/avatarlistbox.cpp gui/widgets/avatarlistbox.h -- cgit v1.2.3-70-g09d2