Skip to content

Commit eb1cb4d

Browse files
committed
Modify CMakeList and WinBuild for Changes at a284aa5 and 4f56678
1 parent a284aa5 commit eb1cb4d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

contrib/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
include_directories(${PYTHONHOME}/include)
88
link_directories(${PYTHONHOME}/libs)
99

10-
add_definitions(-DPY_INCLUDE)
10+
add_definitions(-DMATPLOTLIBCPP_PYTHON_HEADER=Python.h)
1111

1212
# message(STATUS "*** dump start cmake variables ***")
1313
# get_cmake_property(_variableNames VARIABLES)

contrib/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ changes break any of them.
1212
### Configuring and Building Samples
1313

1414
```cmd
15-
> cd Win
16-
> Win\build_win.cmd
15+
> cd contrib
16+
> WinBuild.cmd
1717
```
1818

19-
The `build_win.cmd` will set up temporal ENV variables and build binaries in (matplotlib root)/examples with the Release configuration.
19+
The `WinBuild.cmd` will set up temporal ENV variables and build binaries in (matplotlib root)/examples with the Release configuration.

contrib/WinBuild.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ pushd build
3131
cmake -G"!CMAKE_GENERATOR!" ^
3232
-DPYTHONHOME:STRING=%PYTHONHOME%^
3333
-DCMAKE_BUILD_TYPE:STRING=%CMAKE_CONFIG% ^
34-
../../Win/
34+
%~dp0
3535
cmake --build . --config %CMAKE_CONFIG%
3636

3737
pushd %CMAKE_CONFIG%
3838
if not EXIST platforms mkdir platforms
3939
if EXIST %PYTHONHOME%/Library/plugins/platforms/qwindows.dll ^
4040
cp %PYTHONHOME%/Library/plugins/platforms/qwindows.dll ./platforms/
4141
popd
42-
move ./%CMAKE_CONFIG% ../
42+
REM move ./%CMAKE_CONFIG% ../
4343
popd
4444
popd
4545
popd

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy