Skip to content

Conversation

huanghaixin008
Copy link
Contributor

Tracking #221

@huanghaixin008 huanghaixin008 requested review from AndreyPavlenko and kurapov-peter and removed request for AndreyPavlenko August 7, 2024 07:26
Comment on lines 21 to 23
set(GENERATOR_FLAG "-G ${CMAKE_GENERATOR}")
set(GENERATOR_FLAG "${CMAKE_GENERATOR}")
endif ()
execute_process(COMMAND ${CMAKE_COMMAND} ${GENERATOR_FLAG}
execute_process(COMMAND ${CMAKE_COMMAND} -G ${GENERATOR_FLAG}
Copy link
Contributor

Choose a reason for hiding this comment

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

what if CMAKE_GENERATOR is not defined? It seems that we'll get here an invalid command anyway:

cmake -G _empty_ -Wno-dev ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed by adding an extra var for -G.

Copy link
Contributor

@dchigarev dchigarev left a comment

Choose a reason for hiding this comment

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

@huanghaixin008
Have you tested that it fixes the issue for you? Because for me building with -DGC_ENABLE_DNNL=ON works with and without your fix

@huanghaixin008
Copy link
Contributor Author

huanghaixin008 commented Aug 7, 2024

@huanghaixin008 Have you tested that it fixes the issue for you? Because for me building with -DGC_ENABLE_DNNL=ON works with and without your fix

@dchigarev Yes I did. Two other teammates and me cannot build on latest main branch, and with this fix I can build.

@dchigarev dchigarev merged commit b22af8c into main Aug 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants