From 62895ee9c04692733c2d6a1f6d0d72f37bea1d56 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Mon, 4 Mar 2024 19:13:57 +0300 Subject: [PATCH] cmake: remove config.h as it isn't needed and FTBFSs assistant Signed-off-by: Alexander Golubev --- CMakeLists.txt | 2 -- qmake/generators/mac/pbuilder_pbx.cpp | 4 ---- qmake/generators/makefile.cpp | 3 --- qmake/project.cpp | 3 --- src/kernel/ntqgif.h | 4 ---- src/tools/qcstring.cpp | 4 ---- src/tools/qstring.cpp | 3 --- 7 files changed, 23 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59fa0906..c8e8cfdb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,7 +205,6 @@ include( config.tests/unix/ipv6/ConfigureChecks.cmake ) # test: IPv6 net ###### global compiler settings -add_definitions( -DHAVE_CONFIG_H ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) @@ -225,7 +224,6 @@ tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations ) ##### write configure files -configure_file( config.h.cmake config.h @ONLY ) configure_file( src/tools/qconfig.cpp.cmake src/tools/qconfig.cpp @ONLY ) configure_file( include/ntqconfig.h.cmake include/ntqconfig.h @ONLY ) configure_file( include/ntqmodules.h.cmake include/ntqmodules.h @ONLY ) diff --git a/qmake/generators/mac/pbuilder_pbx.cpp b/qmake/generators/mac/pbuilder_pbx.cpp index c9698f0a..329b7996 100644 --- a/qmake/generators/mac/pbuilder_pbx.cpp +++ b/qmake/generators/mac/pbuilder_pbx.cpp @@ -36,10 +36,6 @@ ** **********************************************************************/ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "pbuilder_pbx.h" #include "option.h" #include "meta.h" diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp index fe5584a8..f31c7e08 100644 --- a/qmake/generators/makefile.cpp +++ b/qmake/generators/makefile.cpp @@ -35,9 +35,6 @@ ** herein. ** **********************************************************************/ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #include "makefile.h" #include "option.h" diff --git a/qmake/project.cpp b/qmake/project.cpp index fc297e72..de57507e 100644 --- a/qmake/project.cpp +++ b/qmake/project.cpp @@ -35,9 +35,6 @@ ** herein. ** **********************************************************************/ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #include "project.h" #include "property.h" diff --git a/src/kernel/ntqgif.h b/src/kernel/ntqgif.h index 5ef852ed..f5fee77b 100644 --- a/src/kernel/ntqgif.h +++ b/src/kernel/ntqgif.h @@ -52,10 +52,6 @@ #include "ntqglobal.h" #endif // QT_H -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #ifndef QT_BUILTIN_GIF_READER #define QT_BUILTIN_GIF_READER 0 #endif diff --git a/src/tools/qcstring.cpp b/src/tools/qcstring.cpp index 67a83197..de8d8902 100644 --- a/src/tools/qcstring.cpp +++ b/src/tools/qcstring.cpp @@ -39,10 +39,6 @@ ** **********************************************************************/ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "ntqstring.h" #include "ntqregexp.h" #include "ntqdatastream.h" diff --git a/src/tools/qstring.cpp b/src/tools/qstring.cpp index 536951b8..26e9b61c 100644 --- a/src/tools/qstring.cpp +++ b/src/tools/qstring.cpp @@ -38,9 +38,6 @@ ** herein. ** **********************************************************************/ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif // Don't define it while compiling this module, or USERS of TQt will // not be able to link.