Skip to content

Commit

Permalink
Extending workaround of ignoring per_kernel option to cmake 2.26
Browse files Browse the repository at this point in the history
  • Loading branch information
antonwolfy committed May 24, 2023
1 parent 08681ce commit d407618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dpnp/backend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ set(DPNP_SRC
set(_trgt "dpnp_backend_c")

if(WIN32)
if (${CMAKE_VERSION} VERSION_LESS "3.23")
if (${CMAKE_VERSION} VERSION_LESS "3.27")
# this is a work-around for target_link_options inserting option after -link option, cause
# linker to ignore it.
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -fsycl-device-code-split=per_kernel")
Expand Down
2 changes: 1 addition & 1 deletion dpnp/backend/extensions/lapack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pybind11_add_module(${python_module_name} MODULE
)

if (WIN32)
if (${CMAKE_VERSION} VERSION_LESS "3.23")
if (${CMAKE_VERSION} VERSION_LESS "3.27")
# this is a work-around for target_link_options inserting option after -link option, cause
# linker to ignore it.
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -fsycl-device-code-split=per_kernel")
Expand Down

0 comments on commit d407618

Please sign in to comment.