Skip to content

Commit 83a0066

Browse files
author
Sven Kipry
committed
fix include path in CMakeLists.txt
The include path is not set correctly when QHotkey is build as a subproject. To fix that CMAKE_CURRENT_SOURCE_DIR should be used instead of CMAKE_SOURCE_DIR in target_include_directories.
1 parent 7028920 commit 83a0066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ target_link_libraries(qhotkey ${LIBS})
4242

4343
target_include_directories(qhotkey
4444
PUBLIC
45-
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/QHotkey>
45+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/QHotkey>
4646
$<INSTALL_INTERFACE:include>)
4747

4848
set_target_properties(qhotkey PROPERTIES

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy