Skip to content

Reorganize sources into src/ and include/ subdirectories#2

Merged
K5WH-Walter merged 5 commits into
K5WH-Walter:mainfrom
catriname:fix/src-layout
Mar 16, 2026
Merged

Reorganize sources into src/ and include/ subdirectories#2
K5WH-Walter merged 5 commits into
K5WH-Walter:mainfrom
catriname:fix/src-layout

Conversation

@catriname

Copy link
Copy Markdown
Contributor

CMakeLists.txt expects src/.cpp and include/.h but files were at the repo root, causing the cmake configure step to fail with "Cannot find source file: src/main.cpp".

CMakeLists.txt expects src/*.cpp and include/*.h but files were at the
repo root, causing the cmake configure step to fail with "Cannot find
source file: src/main.cpp".
- Guard PACKCOM_WINDOWS define with #ifndef to stop redefinition
  warning (CMakeLists already sets it via add_compile_definitions)
- Add #define NOMINMAX before <windows.h> so std::min/std::max
  are not shadowed by the Windows min/max macros (C2589 errors)
- Change constexpr INVALID_SERIAL to static const — INVALID_HANDLE_VALUE
  involves a pointer cast and is not a valid constant expression (C2131)
Unpinned install pulled WiX v6 tool + WixToolset.UI.wixext v7.0.0-rc.2
which are incompatible with the v4 schema used in PackCom.wxs.
WiX v4 stores extension references relative to the current directory.
Adding from repo root then building from installer/ meant the extension
could not be found at build time.
XML comments cannot contain '--' (double dash). Replace decorative
dash-line comments with '=' characters to satisfy the XML spec.
@K5WH-Walter K5WH-Walter merged commit b9fede3 into K5WH-Walter:main Mar 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants