ClickHouse/src/Core
Robert Schulze 1a7727a254
Prefix overridden add_executable() command with "clickhouse_"
A simple HelloWorld program with zero includes except iostream triggers
a build of ca. 2000 source files. The reason is that ClickHouse's
top-level CMakeLists.txt overrides "add_executable()" to link all
binaries against "clickhouse_new_delete". This links against
"clickhouse_common_io", which in turn has lots of 3rd party library
dependencies ... Without linking "clickhouse_new_delete", the number of
compiled files for "HelloWorld" goes down to ca. 70.

As an example, the self-extracting-executable needs none of its current
dependencies but other programs may also benefit.

In order to restore access to the original "add_executable()", the
overriding version is now prefixed. There is precedence for a
"clickhouse_" prefix (as opposed to "ch_"), for example
"clickhouse_split_debug_symbols". In general prefixing makes sense also
because overriding CMake commands relies on undocumented behavior and is
considered not-so-great practice (*).

(*) https://crascit.com/2018/09/14/do-not-redefine-cmake-commands/
2022-07-11 19:36:18 +02:00
..
examples Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
fuzzers Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
MySQL Revert "Fix errors of CheckTriviallyCopyableMove type" 2022-06-07 13:53:10 +02:00
PostgreSQL Review fixes 2022-07-04 14:14:15 +02:00
tests Fix bug of datetime64 parsed from string '1969-12-31 23:59:59.123' (#37039) 2022-05-24 10:47:17 +02:00
AccurateComparison.h
BackgroundSchedulePool.cpp Fixed tests 2022-06-14 21:43:28 +02:00
BackgroundSchedulePool.h BackgroundSchedulePool remove Poco::NotificationQueue 2022-06-14 21:43:28 +02:00
BaseSettings.cpp base should not depend on Common 2022-04-29 10:26:35 +08:00
BaseSettings.h
Block.cpp Merge branch 'master' of github.com:ClickHouse/ClickHouse into json-columns-formats 2022-05-20 11:08:30 +00:00
Block.h Merge pull request #36975 from Avogar/json-columns-formats 2022-05-23 12:11:28 +02:00
BlockInfo.cpp Make better 2022-05-18 09:25:26 +00:00
BlockInfo.h Make better 2022-05-18 09:25:26 +00:00
callOnTypeIndex.h Replacing IsDecimalNumber 2021-09-11 00:40:18 +02:00
CMakeLists.txt
ColumnNumbers.h Merge remote-tracking branch 'origin/master' into grouping-function 2022-05-19 17:58:33 +00:00
ColumnsWithTypeAndName.h
ColumnWithTypeAndName.cpp
ColumnWithTypeAndName.h
config_core.h.in remove hashid define guard 2022-05-18 15:26:54 -04:00
DecimalComparison.h
DecimalFunctions.h Fix bug of datetime64 parsed from string '1969-12-31 23:59:59.123' (#37039) 2022-05-24 10:47:17 +02:00
Defines.h simplify windowview 2022-05-22 10:13:16 +00:00
ExternalResultDescription.cpp
ExternalResultDescription.h
ExternalTable.cpp Better. 2022-05-24 20:06:08 +00:00
ExternalTable.h
Field.cpp Better exception messages on wrong table engines/functions argument types 2022-06-23 20:04:06 +00:00
Field.h Merge branch 'master' into better-exception-messages 2022-06-29 11:09:06 +00:00
InterpolateDescription.cpp
InterpolateDescription.h
iostream_debug_helpers.cpp
iostream_debug_helpers.h
MultiEnum.h
Names.h Try to compute helper column lazy 2022-05-13 14:55:50 +00:00
NamesAndAliases.h Update using Map datatyle in system log tables before merge 2021-06-28 14:42:21 +03:00
NamesAndTypes.cpp WIP on GROUPING function 2022-05-12 16:40:26 +00:00
NamesAndTypes.h Add comments and make tests more verbose 2022-05-25 21:23:35 +00:00
PostgreSQLProtocol.cpp
PostgreSQLProtocol.h base should not depend on Common 2022-04-29 10:26:35 +08:00
Protocol.h
ProtocolDefines.h Send profile events for INSERT queries (previously only SELECT was supported) 2022-06-16 11:59:01 +03:00
QualifiedTableName.h
QueryProcessingStage.cpp
QueryProcessingStage.h
ServerUUID.cpp base should not depend on Common 2022-04-29 10:26:35 +08:00
ServerUUID.h
Settings.cpp Enable clang-tidy modernize-deprecated-headers & hicpp-deprecated-headers 2022-05-09 08:23:33 +02:00
Settings.h Merge pull request #38363 from kssenii/pg-add-auto-close 2022-07-06 01:10:05 +02:00
SettingsEnums.cpp Pipeline for full sorting merge join 2022-07-06 14:23:44 +00:00
SettingsEnums.h Pipeline for full sorting merge join 2022-07-06 14:23:44 +00:00
SettingsFields.cpp Fix settings profile with seconds unit 2022-07-06 12:56:54 +02:00
SettingsFields.h WIP: Seconds as floating point 2022-05-13 11:46:58 +02:00
SettingsQuirks.cpp base should not depend on Common 2022-04-29 10:26:35 +08:00
SettingsQuirks.h
SortCursor.h Fix build, small changes 2022-07-06 14:25:10 +00:00
SortDescription.cpp SortDescription compile fix typo 2022-06-16 16:40:02 +02:00
SortDescription.h SortDescription compile fix typo 2022-06-16 16:40:02 +02:00
TypeId.h TypeId name fix 2022-01-20 13:51:00 +00:00
Types.h
UUID.cpp
UUID.h