Skip to content

Commit

Permalink
Discourage using configure/make to build Poco. CMake is officially su…
Browse files Browse the repository at this point in the history
…pported build system.
  • Loading branch information
matejk committed Feb 16, 2024
1 parent 88be669 commit d247805
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# The global Makefile for POCO [generated by mkrelease]
#

$(warning *********************************************************************)
$(warning WARNING: Make is not officially supported to build Poco, use CMake
$(warning *********************************************************************)

sinclude config.make
sinclude config.build
POCO_CONFIG_INCLUDED = 1
Expand Down
15 changes: 15 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ $(ls -C "$base"/build/config/)
ENDHELP
}

echo "*********************************************************************"
echo "WARNING: Make is not officially supported to build Poco, use CMake"
echo "(Use option --force-legacy-build to continue)"
echo "*********************************************************************"

force_legacy_build=false

# save cwd
build=$(pwd)
# get directory where we are located
Expand Down Expand Up @@ -280,6 +287,9 @@ while [ $# -ge 1 ]; do
--shared)
shared=1 ;;

--force-legacy-build)
force_legacy_build=true ;;

--help)
showhelp
exit 0
Expand All @@ -293,6 +303,11 @@ while [ $# -ge 1 ]; do

shift
done

if [[ "$force_legacy_build" == false ]] ; then
exit 1
fi

# autodetect build environment
# ...special cases for CYGWIN or MinGW
if [ "$config" = "" ] ; then
Expand Down
4 changes: 4 additions & 0 deletions release/script/mkrelease
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ cat >${target}/Makefile <<'ENDOFSCRIPT'
# The global Makefile for POCO [generated by mkrelease]
#
$(warning *********************************************************************)
$(warning WARNING: Make is not officially supported to build Poco, use CMake
$(warning *********************************************************************)
sinclude config.make
sinclude config.build
Expand Down

0 comments on commit d247805

Please sign in to comment.