Skip to content

Commit

Permalink
Remove LDPK version embedding
Browse files Browse the repository at this point in the history
It caused errors on some newer CMake versions.
  • Loading branch information
david-cattermole committed Dec 17, 2024
1 parent c621cc8 commit a388a4c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions share/cmake/modules/Findldpk.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,8 @@ function(find_ldpk_create_target)
endfunction()


function(find_ldpk_set_target ldpk_version ldpk_include_dir)
function(find_ldpk_set_target ldpk_include_dir)

set_target_properties(ldpk::ldpk PROPERTIES
VERSION ${ldpk_version}
)
set_target_properties(ldpk::ldpk PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${ldpk_include_dir}
)
Expand Down Expand Up @@ -214,7 +211,7 @@ endif()


if(_ldpk_TARGET_CREATE)
find_ldpk_set_target(${ldpk_VERSION} ${ldpk_INCLUDE_DIR})
find_ldpk_set_target(${ldpk_INCLUDE_DIR})
mark_as_advanced(
ldpk_DIR
ldpk_INCLUDE_DIR
Expand Down

0 comments on commit a388a4c

Please sign in to comment.