diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2017-04-28 16:31:23 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2017-04-28 16:31:23 +0300 |
commit | 607b5747e7204926edfdd26f7924a4cab8916050 (patch) | |
tree | 3b1fa4c2746e52058033008113bb2d1f5a6ce540 /programs | |
parent | 0c1c76b9271e871da673df14fc7a7e2564a71ef6 (diff) |
Use cmake namespaced target aliases for indicating dependencies between libraries
Diffstat (limited to 'programs')
-rw-r--r-- | programs/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/programs/CMakeLists.txt b/programs/CMakeLists.txt index c138cc0c..0c023e02 100644 --- a/programs/CMakeLists.txt +++ b/programs/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR) -if(NOT DEFINED afio_hl) +if(NOT TARGET boost::afio::hl) add_subdirectory(.. afio EXCLUDE_FROM_ALL) endif() @@ -16,5 +16,5 @@ function(make_program program) ) endfunction() -make_program(benchmark-locking afio_hl) -make_program(fs-probe afio_hl) +make_program(benchmark-locking boost::afio::hl) +make_program(fs-probe boost::afio::hl) |