Skip to content

Commit

Permalink
Android: build: use absolute CMake source dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Nov 13, 2023
1 parent 68bdf65 commit 98c6819
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions android/app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif ()

# build libJPEG
set(BUILD_SHARED_LIBS OFF)
set(libjpeg_src_DIR ../../../../../libjpeg-turbo)
set(libjpeg_src_DIR ${CMAKE_SOURCE_DIR}/../../../../../libjpeg-turbo)
set(libjpeg_build_DIR ${CMAKE_BINARY_DIR}/libjpeg)
# adds a source subdir with specifying a build output dir
add_subdirectory(${libjpeg_src_DIR} ${libjpeg_build_DIR})
Expand All @@ -27,7 +27,7 @@ include_directories(

# build libressl
set(BUILD_SHARED_LIBS OFF)
set(libssl_src_DIR ../../../../../libressl)
set(libssl_src_DIR ${CMAKE_SOURCE_DIR}/../../../../../libressl)
set(libssl_build_DIR ${CMAKE_BINARY_DIR}/libssl)
# adds a source subdir with specifying a build output dir
add_subdirectory(${libssl_src_DIR} ${libssl_build_DIR})
Expand All @@ -42,7 +42,7 @@ include_directories(

# build libssh2
set(BUILD_SHARED_LIBS OFF)
set(libssh2_src_DIR ../../../../../libssh2)
set(libssh2_src_DIR ${CMAKE_SOURCE_DIR}/../../../../../libssh2)
set(libssh2_build_DIR ${CMAKE_BINARY_DIR}/libssh2)
# adds a source subdir with specifying a build output dir
add_subdirectory(${libssh2_src_DIR} ${libssh2_build_DIR})
Expand All @@ -57,7 +57,7 @@ link_directories(

# build LibVNCClient
set(BUILD_SHARED_LIBS OFF)
set(libvnc_src_DIR ../../../../../libvncserver)
set(libvnc_src_DIR ${CMAKE_SOURCE_DIR}/../../../../../libvncserver)
set(libvnc_build_DIR ${CMAKE_BINARY_DIR}/libvnc)
# adds a source subdir with specifying a build output dir
add_subdirectory(${libvnc_src_DIR} ${libvnc_build_DIR})
Expand Down

0 comments on commit 98c6819

Please sign in to comment.