Skip to content

fix: add QWT_FOUND guard in ld-analyse CMakeLists.txt#296

Open
Kraz3yIvan wants to merge 1 commit intooyvindln:vhs_decodefrom
Kraz3yIvan:fix-ld-analyse-qwt-guard
Open

fix: add QWT_FOUND guard in ld-analyse CMakeLists.txt#296
Kraz3yIvan wants to merge 1 commit intooyvindln:vhs_decodefrom
Kraz3yIvan:fix-ld-analyse-qwt-guard

Conversation

@Kraz3yIvan
Copy link
Copy Markdown

Without a QWT_FOUND guard, the build fails on Windows when
building without QWT (e.g. with -DUSE_QWT=OFF), because
target_include_directories and target_link_libraries
unconditionally reference QWT variables that are empty or
undefined.

This fix wraps the QWT-dependent include and link directives
in appropriate guards so the build succeeds cleanly with or
without QWT present.

Tested on Windows with -DUSE_QWT=OFF via MSYS2/MinGW64.

Without a QWT_FOUND guard, the build fails on Windows when 
building with -DUSE_QWT=OFF because target_include_directories 
and target_link_libraries unconditionally reference QWT 
variables that are empty or undefined.
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.

1 participant