Skip to content

Commit

Permalink
fix msvc build after untwine update
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 20, 2025
1 parent 17d535c commit c1129ed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion external/untwine/untwine/windows/mapfile.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <Windows.h>
#include <windows.h>
#include <io.h>
#include <fcntl.h>

Expand Down
7 changes: 7 additions & 0 deletions src/analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,13 @@ if (WITH_PDAL AND PDAL_2_5_OR_HIGHER)
include_directories(
${CMAKE_SOURCE_DIR}/external/untwine/api
)

IF(MSVC)
set_source_files_properties(
${CMAKE_SOURCE_DIR}/external/untwine/api/QgisUntwine.cpp
PROPERTIES COMPILE_FLAGS "/DUNICODE"
)
endif()
endif()

include_directories(SYSTEM ${SPATIALINDEX_INCLUDE_DIR})
Expand Down
7 changes: 7 additions & 0 deletions src/providers/pdal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ set(PDAL_SRCS
${CMAKE_SOURCE_DIR}/external/untwine/api/QgisUntwine.cpp
)

IF(MSVC)
set_source_files_properties(
${CMAKE_SOURCE_DIR}/external/untwine/api/QgisUntwine.cpp
PROPERTIES COMPILE_FLAGS "/DUNICODE"
)
endif()

set(PDAL_HDRS
qgspdalprovider.h
qgspdalindexingtask.h
Expand Down

0 comments on commit c1129ed

Please sign in to comment.