Skip to content

Commit

Permalink
fix(ci): Pull SDK from nightly builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
na2axl committed Oct 6, 2024
1 parent d21fc97 commit 56dadc0
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ cmake_minimum_required(VERSION 3.20)

cmake_policy(SET CMP0048 NEW)

list(APPEND CMAKE_MODULE_PATH "$ENV{AM_SDK_PATH}/cmake" "${AM_SDK_PATH}/cmake")
list(APPEND CMAKE_PREFIX_PATH "$ENV{AM_SDK_PATH}/cmake" "${AM_SDK_PATH}/cmake")
if(EXISTS $ENV{AM_SDK_PATH})
string(REPLACE "\\" "/" ENV_AM_SDK_PATH $ENV{AM_SDK_PATH})
list(APPEND CMAKE_MODULE_PATH "${ENV_AM_SDK_PATH}/cmake")
list(APPEND CMAKE_PREFIX_PATH "${ENV_AM_SDK_PATH}/cmake")
endif()

list(APPEND CMAKE_MODULE_PATH "${AM_SDK_PATH}/cmake")
list(APPEND CMAKE_PREFIX_PATH "${AM_SDK_PATH}/cmake")

project(AmplitudeVorbisCodecPlugin)

Expand Down Expand Up @@ -81,7 +87,11 @@ set(AM_INC_DESTINATION "include")

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${AM_LIB_DESTINATION}")

set(CMAKE_INSTALL_PREFIX ${AM_SDK_PATH})
if(NOT AM_BUILDSYSTEM_BUILDING_AMPLITUDE)
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/sdk")
else()
set(CMAKE_INSTALL_PREFIX ${AM_SDK_PATH})
endif()

install(
TARGETS ${PROJECT_NAME}
Expand Down

0 comments on commit 56dadc0

Please sign in to comment.