Skip to content

Commit

Permalink
Use relative INTERFACE_INCLUDE location
Browse files Browse the repository at this point in the history
Using ${CMAKE_INSTALL_PREFIX} hardcodes the installation location,
instead of having CMake
use ${_IMPORT_PREFIX}
  • Loading branch information
wrobelda committed Sep 23, 2021
1 parent c9498c1 commit 17f88b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
add_library(SnoreToastActions INTERFACE)
target_include_directories(SnoreToastActions INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include/snoretoast>
$<INSTALL_INTERFACE:include/snoretoast>
)
add_library(SnoreToast::SnoreToastActions ALIAS SnoreToastActions)

Expand Down

0 comments on commit 17f88b2

Please sign in to comment.