Skip to content

Conversation

@MakeDecisionWorth
Copy link
Contributor

Trying to build cpu only variant on Windows when oneAPI environment is active, it will failed by an linker error LNK1104.

This commit solved the issue by excluding libm.lib target link also when cmake generator is any version of Visual Studio.

Trying to build cpu only variant on Windows when oneAPI environment is active, it will failed by an linker error LNK1104.

This commit solved the issue by excluding libm.lib target link also when cmake generator is any version of Visual Studio.
check GGML_SYCL and ONEAPI_ROOT state rather than generator name.
@MakeDecisionWorth MakeDecisionWorth changed the title cmake: exclude math library when generator is Visual Studio cmake: exclude libm.lib when GGML_SYCL=OFF but ONEAPI_ROOT is set in windows builds Oct 21, 2024
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