Bug #98561 Building client only fails
Submitted: 11 Feb 2020 23:40 Modified: 12 Feb 2020 6:56
Reporter: Jay Edgar Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.17 OS:Any
Assigned to: CPU Architecture:Any
Tags: client

[11 Feb 2020 23:40] Jay Edgar
Description:
I tried to build client only by specifying -DWITHOUT_SERVER, but I ran into a CMake failure because in scripts/CMakeLists.txt it attempts to access libmysql (about line 362).

In the root CMakeLists.txt I see that scripts is always included (about line 1353) with a comment that it is needed later.  If I change that to only build scripts if NOT WITHOUT_SERVER the client build succeeds.

How to repeat:
Build with -DWITHOUT_SERVER

Suggested fix:
Move the ADD_SUBDIRECTORY(scripts) line into the IF(NOT WITHOUT_SERVER) section below it.
[12 Feb 2020 6:56] MySQL Verification Team
Hello Jay Edgar,

Thank you for the report and feedback.
Imho this is no longer reproducible after Bug #95740 (Bug #95308 is closed as duplicate of Bug #95740) and per change log:

- 8.0.18 change log - https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-18.html

MySQL builds configured with -DWITHOUT_SERVER=1 failed. (Bug #29948728, Bug #95740)

- 5.7.28 change log - https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-28.html

MySQL builds configured with -DWITHOUT_SERVER=1 failed. (Bug #29948728, Bug #95740)

But if you are still seeing this on 8.0.19 builds then please let us know with exact cmake command with options used, compiler and OS versions to reproduce at our end. Thank you.

regards,
Umesh