File tree Expand file tree Collapse file tree 2 files changed +13
-18
lines changed Expand file tree Collapse file tree 2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 1
- mkdir build
2
- cd build
1
+ mkdir build- %SUBDIR% - %c_compiler%
2
+ cd build- %SUBDIR% - %c_compiler%
3
3
4
4
:: Configure.
5
- cmake -G " NMake Makefiles " ^
6
- -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
7
- -D ZLIB_LIBRARY=%LIBRARY_LIB% \zlib.lib ^
8
- -D ZLIB_INCLUDE_DIR=%LIBRARY_INC% ^
9
- -D CMAKE_BUILD_TYPE=Release ^
10
- %SRC_DIR%
11
- if errorlevel 1 exit 1
5
+ cmake -G " %CMAKE_GENERATOR% " ^
6
+ -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
7
+ -D ZLIB_LIBRARY=%LIBRARY_LIB% \zlib.lib ^
8
+ -D ZLIB_INCLUDE_DIR=%LIBRARY_INC% ^
9
+ -DCMAKE_C_FLAGS= " %CFLAGS% -DWIN32 " ^
10
+ ..
11
+ if errorlevel 1 exit /b 1
12
12
13
- :: Build.
14
- nmake
15
- if errorlevel 1 exit 1
13
+ cmake --build . --target install --config Release
14
+ if errorlevel 1 exit /b 1
16
15
17
16
:: Test.
18
- ctest
19
- if errorlevel 1 exit 1
20
-
21
- :: Install.
22
- nmake install
17
+ ctest -C Release
23
18
if errorlevel 1 exit 1
24
19
25
20
:: Make copies of the .lib files without the embedded version number.
Original file line number Diff line number Diff line change 9
9
sha256 : 574623a4901a9969080ab4a2df9437026c8a87150dfd5c235e28c94b212964a7
10
10
11
11
build :
12
- number : 2
12
+ number : 3
13
13
features :
14
14
- vc{{ vc }} # [win]
15
15
run_exports :
You can’t perform that action at this time.
0 commit comments