mirror of
https://github.com/Skycoder42/QHotkey.git
synced 2026-11-19 12:49:58 +03:00
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.
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ target_link_libraries(qhotkey ${LIBS})
|
|||||||
|
|
||||||
target_include_directories(qhotkey
|
target_include_directories(qhotkey
|
||||||
PUBLIC
|
PUBLIC
|
||||||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/QHotkey>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/QHotkey>
|
||||||
$<INSTALL_INTERFACE:include>)
|
$<INSTALL_INTERFACE:include>)
|
||||||
|
|
||||||
set_target_properties(qhotkey PROPERTIES
|
set_target_properties(qhotkey PROPERTIES
|
||||||
|
|||||||
Reference in New Issue
Block a user