mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-03 14:25:38 +02:00
cmake: fix avutil detection with WITH_SUBMODULE
as the daemon is in client-qt Change-Id: I9eaf1864450de635767363a0ce17726fd459307d
This commit is contained in:
parent
19011c10bd
commit
6ac70c64c7
1 changed files with 10 additions and 2 deletions
|
@ -288,7 +288,11 @@ else()
|
|||
endif()
|
||||
|
||||
# For libavutil/avframe.
|
||||
set(LIBJAMI_CONTRIB_DIR "${PROJECT_SOURCE_DIR}/../daemon/contrib")
|
||||
if (WITH_DAEMON_SUBMODULE)
|
||||
set(LIBJAMI_CONTRIB_DIR "${PROJECT_SOURCE_DIR}/daemon/contrib")
|
||||
else()
|
||||
set(LIBJAMI_CONTRIB_DIR "${PROJECT_SOURCE_DIR}/../daemon/contrib")
|
||||
endif()
|
||||
find_path(AVUTIL_INCLUDE_DIR libavutil/avutil.h
|
||||
PATHS
|
||||
${LIBJAMI_CONTRIB_DIR}/native/ffmpeg
|
||||
|
@ -319,7 +323,11 @@ if(MSVC)
|
|||
add_definitions(-DUNICODE -DQT_NO_DEBUG -DNDEBUG)
|
||||
|
||||
# dependencies
|
||||
set(DRING ${PROJECT_SOURCE_DIR}/../daemon)
|
||||
if (WITH_DAEMON_SUBMODULE)
|
||||
set(DRING ${PROJECT_SOURCE_DIR}/daemon)
|
||||
else()
|
||||
set(DRING ${PROJECT_SOURCE_DIR}/../daemon)
|
||||
endif()
|
||||
set(QRENCODE_DIR
|
||||
${PROJECT_SOURCE_DIR}/3rdparty/qrencode-win32/qrencode-win32)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue