Skip to content

Fix minor CMake issues#3982

Open
cyyever wants to merge 3 commits into
intel:mainfrom
cyyever:agent/cmake-minor-fixes
Open

Fix minor CMake issues#3982
cyyever wants to merge 3 commits into
intel:mainfrom
cyyever:agent/cmake-minor-fixes

Conversation

@cyyever

@cyyever cyyever commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Cleanups from a CMake audit: the include-dir dedup in run_sycl.cmake referenced a misspelled variable and never ran; GNU ld's --start-group/--end-group were passed to MSVC link on Windows (ignored with warnings); FindONEMKL accepted *-NOTFOUND libraries and still reported success, deferring a partial oneMKL install to an obscure link error instead of failing at configure time. Also removes an undefined variable reference, a stray get_filename_component() argument, and a duplicated source listing, none of which affect the build output.

Authored with Claude Code.

cyyever and others added 2 commits June 12, 2026 10:51
Cleanups from a CMake audit: the include-dir dedup in run_sycl.cmake
referenced a misspelled variable and never ran; GNU ld's
--start-group/--end-group were passed to MSVC link on Windows (ignored
with warnings); FindONEMKL accepted *-NOTFOUND libraries and still
reported success, deferring a partial oneMKL install to an obscure link
error instead of failing at configure time. Also removes an undefined
variable reference, a stray get_filename_component() argument, and a
duplicated source listing, none of which affect the build output.

Test Plan:
Configure-time changes only. Checked with:

```
lintrunner --take CMAKE
```

and verified via a scratch `cmake -P` script that
`get_filename_component(... NAME_WLE)` output is unchanged after
dropping the stray REALPATH argument.
NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH)
if(NOT ${LIB_NAME}_library)
message(WARNING "${LIB_NAME} not found in ${ONEMKL_LIB_DIR}!!")
return()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!
Could you help update

if(NOT ONEMKL_FOUND)
message(FATAL_ERROR "Can NOT find ONEMKL cmake helpers module!")
endif()
to something like
"oneMKL not found or installation is incomplete; see warnings above for details."

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