diff --git a/CMakeLists.txt b/CMakeLists.txt index ffc76c2..4047158 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,15 +42,17 @@ target_include_directories(untwine ${PDAL_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR} ) + target_link_libraries(untwine PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${PDAL_LIBRARIES} ) + if (MSVC) target_link_options(untwine PRIVATE - /SUBSYSTEM:WINDOWS /ENTRY:wmainCRTStartup + /SUBSYSTEM:CONSOLE /ENTRY:wmainCRTStartup ) endif() diff --git a/epf/Epf.cpp b/epf/Epf.cpp index 232aa25..0563b3d 100644 --- a/epf/Epf.cpp +++ b/epf/Epf.cpp @@ -68,7 +68,6 @@ void Epf::run(ProgressWriter& progress) determineOffset(fileInfos); m_b.srs = determineSrs(fileInfos); - // Setup grid and point count. For each file info the N x N x N grid is expanded to // hold all the points. If the number of points seems too large, N is expanded to N + 1. // The correct N is often wrong, especially for some areas where things are more dense.