Skip to content

Commit

Permalink
libethdrivers: use cmake 3.13 features
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Feb 29, 2024
1 parent b0cbdf2 commit c9f487b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libethdrivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: BSD-2-Clause
#

cmake_minimum_required(VERSION 3.8.2)
cmake_minimum_required(VERSION 3.13)

project(libethdrivers C)

Expand Down Expand Up @@ -124,7 +124,5 @@ set(
"odroidc2_ethernet"
)
foreach(module in LISTS EthernetDriverModules)
# Using target_link_libraries() is a bit of a hack, target_link_options()
# would be the better way, but this requires CMake v3.13.
target_link_libraries(ethdrivers "-Wl,--undefined=${module}_ptr")
target_link_options(ethdrivers "--undefined=${module}_ptr")
endforeach()

0 comments on commit c9f487b

Please sign in to comment.