This repository was archived by the owner on Oct 5, 2021. It is now read-only.
File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,20 @@ Adding -DWITH_DEBUG=1 to the cmake command line gives you a debug build.
24
24
25
25
Building on Windows is slightly different:
26
26
cd <some build directory>
27
- cmake <path to source directonry >
27
+ cmake <path to source directory >
28
28
29
- devenv MySQL.sln /build Debug
29
+ cmake --build . --config Debug
30
30
or
31
- devenv MySQL.sln /build RelWithDebInfo
31
+ cmake --build . --config RelWithDebInfo
32
32
33
33
34
34
If you have special needs, you can disable the defaults by setting
35
35
these cmake variables off:
36
36
37
37
WITH_DEFAULT_COMPILER_OPTIONS
38
38
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.
Original file line number Diff line number Diff line change 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.
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
@@ -80,7 +80,7 @@ IF(CMAKE_BUILD_TYPE)
80
80
ENDIF ()
81
81
ENDIF ()
82
82
83
- # On windows do: 'devenv mysql.sln /build Debug /project test-mtr'
83
+ # On windows do: 'cmake --build . --config debug --target test-mtr'
84
84
# On unix do: 'make test-mtr'
85
85
ADD_CUSTOM_TARGET (test -mtr
86
86
COMMAND perl ./mysql-test -run.pl --force --parallel=4 --suite=main
You can’t perform that action at this time.
0 commit comments