Merge pull request #4368 from mathisloge/fix/win-error
Fix windows build error
This commit is contained in:
commit
b7953fa68b
6 changed files with 11 additions and 10 deletions
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
|
@ -101,7 +101,7 @@ jobs:
|
|||
continue-on-error: true
|
||||
working-directory: build/${{ env.preset }}/out
|
||||
env:
|
||||
PROJ_LIB: ${{ github.workspace }}/build/${{ env.preset }}/vcpkg_installed/x64-osx/share/proj/data
|
||||
PROJ_LIB: ${{ github.workspace }}/build/${{ env.preset }}/vcpkg_installed/x64-osx/share/proj
|
||||
run: ./mapnik-test-visual -j $(sysctl -n hw.logicalcpu) --output-dir ./visual-test-result
|
||||
|
||||
- name: Pack visual test results
|
||||
|
@ -111,7 +111,7 @@ jobs:
|
|||
- name: Run Benchmark
|
||||
working-directory: build/${{ env.preset }}/out
|
||||
env:
|
||||
PROJ_LIB: ${{ github.workspace }}/build/${{ env.preset }}/vcpkg_installed/x64-osx/share/proj/data
|
||||
PROJ_LIB: ${{ github.workspace }}/build/${{ env.preset }}/vcpkg_installed/x64-osx/share/proj
|
||||
run: ./run_benchmarks
|
||||
|
||||
- name: Coverage
|
||||
|
|
6
.github/workflows/ubuntu.yml
vendored
6
.github/workflows/ubuntu.yml
vendored
|
@ -28,7 +28,7 @@ env:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
services:
|
||||
postgres:
|
||||
|
@ -117,7 +117,7 @@ jobs:
|
|||
continue-on-error: true
|
||||
working-directory: build/${{ env.preset }}/out
|
||||
env:
|
||||
PROJ_LIB: ${{ github.workspace }}/build/${{ env.preset }}/vcpkg_installed/x64-linux/share/proj/data
|
||||
PROJ_LIB: ${{ github.workspace }}/build/${{ env.preset }}/vcpkg_installed/x64-linux/share/proj
|
||||
run: ./mapnik-test-visual -j $(nproc) --output-dir ./visual-test-result
|
||||
|
||||
- name: Pack visual test results
|
||||
|
@ -127,7 +127,7 @@ jobs:
|
|||
- name: Run Benchmarks
|
||||
working-directory: build/${{ env.preset }}/out
|
||||
env:
|
||||
PROJ_LIB: ${{ github.workspace }}/build/${{ env.preset }}/vcpkg_installed/x64-linux/share/proj/data
|
||||
PROJ_LIB: ${{ github.workspace }}/build/${{ env.preset }}/vcpkg_installed/x64-linux/share/proj
|
||||
run: ./run_benchmarks
|
||||
|
||||
- name: Coverage
|
||||
|
|
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
|
@ -104,7 +104,7 @@ jobs:
|
|||
continue-on-error: true
|
||||
working-directory: build/${{ env.preset }}/out
|
||||
env:
|
||||
PROJ_LIB: ${{ github.workspace }}/build/${{ env.preset }}/vcpkg_installed/x64-windows/share/proj/data
|
||||
PROJ_LIB: ${{ github.workspace }}/build/${{ env.preset }}/vcpkg_installed/x64-windows/share/proj
|
||||
run: OpenCppCoverage --modules *libmapnik* --modules mapnik*.exe --modules *.input --sources ${{ github.workspace }} --export_type binary --input_coverage=${{ github.workspace }}/ctest.cov --cover_children -- .\mapnik-test-visual.exe -j (Get-CimInstance -ClassName Win32_ComputerSystem).NumberOfLogicalProcessors --output-dir ./visual-test-result
|
||||
|
||||
- name: Pack visual test results
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
.DS_Store
|
||||
.vscode
|
||||
.cache
|
||||
*.gcov
|
||||
*.gcda
|
||||
*.gcno
|
||||
|
|
|
@ -195,7 +195,7 @@
|
|||
"ADDITIONAL_LIBARIES_PATHS": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-windows/bin"
|
||||
},
|
||||
"environment": {
|
||||
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-windows/share/proj/data"
|
||||
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-windows/share/proj"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -210,7 +210,7 @@
|
|||
"CMAKE_CXX_FLAGS": "--coverage"
|
||||
},
|
||||
"environment": {
|
||||
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-linux/share/proj/data"
|
||||
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-linux/share/proj"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -226,7 +226,7 @@
|
|||
"CMAKE_CXX_FLAGS": "-fprofile-arcs -ftest-coverage"
|
||||
},
|
||||
"environment": {
|
||||
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-osx/share/proj/data"
|
||||
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-osx/share/proj"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
@ -37,7 +37,7 @@ void simplify(std::string const& wkt_in, double tolerance, std::string const& me
|
|||
output.emplace_back(x, y);
|
||||
}
|
||||
std::string wkt_out;
|
||||
REQUIRE(mapnik::util::to_wkt(wkt_out, output));
|
||||
REQUIRE(mapnik::util::to_wkt(wkt_out, mapnik::geometry::geometry<double>{output}));
|
||||
REQUIRE(wkt_out == expected);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue