Skip to content

Commit

Permalink
Add project prefix to library test variable
Browse files Browse the repository at this point in the history
Prevent possible name clashes when used as subproject.
  • Loading branch information
sodevel committed Jan 13, 2023
1 parent 9dd23b6 commit bf66eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib60870-C/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ endif()

if(LIB60870_BUILD_HAL)
include(CheckLibraryExists)
check_library_exists(rt clock_gettime "time.h" CONFIG_SYSTEM_HAS_CLOCK_GETTIME)
check_library_exists(rt clock_gettime "time.h" LIB60870_SYSTEM_HAS_CLOCK_GETTIME)

find_package(Threads REQUIRED)

Expand Down Expand Up @@ -172,7 +172,7 @@ if(LIB60870_BUILD_HAL)

target_link_libraries(lib60870
PRIVATE
$<$<BOOL:${CONFIG_SYSTEM_HAS_CLOCK_GETTIME}>:rt>
$<$<BOOL:${LIB60870_SYSTEM_HAS_CLOCK_GETTIME}>:rt>
m
)
endif()
Expand Down

0 comments on commit bf66eca

Please sign in to comment.