Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

Commit 552bd55

Browse files
author
Tor Didriksen
committed
Fix comments about recommended way to build.
1 parent 86fe709 commit 552bd55

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

BUILD/README

+8-3
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,20 @@ Adding -DWITH_DEBUG=1 to the cmake command line gives you a debug build.
2424

2525
Building on Windows is slightly different:
2626
cd <some build directory>
27-
cmake <path to source directonry>
27+
cmake <path to source directory>
2828

29-
devenv MySQL.sln /build Debug
29+
cmake --build . --config Debug
3030
or
31-
devenv MySQL.sln /build RelWithDebInfo
31+
cmake --build . --config RelWithDebInfo
3232

3333

3434
If you have special needs, you can disable the defaults by setting
3535
these cmake variables off:
3636

3737
WITH_DEFAULT_COMPILER_OPTIONS
3838
WITH_DEFAULT_FEATURE_SET
39+
40+
Note: For building with unit tests, you need to tell cmake where to find
41+
the sources, see ../unittest/gunit/CMakeLists.txt
42+
You should *not* 'make install' googletest/googlemock on your system,
43+
the libraries must be built from source, with the unit tests.

mysql-test/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -80,7 +80,7 @@ IF(CMAKE_BUILD_TYPE)
8080
ENDIF()
8181
ENDIF()
8282

83-
# On windows do: 'devenv mysql.sln /build Debug /project test-mtr'
83+
# On windows do: 'cmake --build . --config debug --target test-mtr'
8484
# On unix do: 'make test-mtr'
8585
ADD_CUSTOM_TARGET(test-mtr
8686
COMMAND perl ./mysql-test-run.pl --force --parallel=4 --suite=main

0 commit comments

Comments
 (0)