Solve dependency errors in funchook.
@@ -28,8 +28,8 @@ ExternalProject_Add(
BUILD_IN_SOURCE 1
)
-set(FUNCHOOK_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/funchook/include)
-set(FUNCHOOK_LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/funchook/src)
+set(FUNCHOOK_INCLUDE_DIR ${FUNCHOOK_SOURCE_DIR}/include)
+set(FUNCHOOK_LIBRARY_DIR ${FUNCHOOK_SOURCE_DIR}/src)
if(WIN32)
set(FUNCHOOK_LIBRARY_PREFIX "")
@@ -176,7 +176,7 @@ target_include_directories(${target}
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_BINARY_DIR}/include
- ${FUNCHOOK_INCLUDE_DIRS} # FuncHook includes
+ ${FUNCHOOK_INCLUDE_DIR} # FuncHook includes
PUBLIC
${DEFAULT_INCLUDE_DIRECTORIES}
