Skip to content

Commit

Permalink
Removed install step for api keys since these wouldn't exist on other…
Browse files Browse the repository at this point in the history
… machines which causes the build process to fail
  • Loading branch information
RichmarIII committed May 3, 2024
1 parent d9344c1 commit 9dfc63c
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ add_library(Orion SHARED ${HEADERS} ${SOURCES})

include(FetchContent)

# execute install_boost.sh
#execute_process(COMMAND ${CMAKE_SOURCE_DIR}/install_boost.sh)

if (NOT DEFINED GITHUB_TOKEN)
FetchContent_Declare(myhtml GIT_REPOSITORY git@github.com:lexborisov/myhtml.git EXCLUDE_FROM_ALL)
FetchContent_Declare(cpprestsdk GIT_REPOSITORY git@github.com:microsoft/cpprestsdk.git EXCLUDE_FROM_ALL)
Expand Down Expand Up @@ -93,8 +90,6 @@ FetchContent_MakeAvailable(
sqlite_modern_cpp
)



get_target_property(MYHTML_SOURCE_DIR myhtml SOURCE_DIR)
set(MYHTML_INCLUDE_DIR ${MYHTML_SOURCE_DIR}/include)
get_target_property(CPPRESTSDK_SOURCE_DIR cpprest SOURCE_DIR)
Expand Down Expand Up @@ -169,14 +164,4 @@ install(DIRECTORY ${MYHTML_INCLUDE_DIR}/ DESTINATION include/Orion/third_party/m
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cert.pem ${CMAKE_CURRENT_SOURCE_DIR}/key.pem DESTINATION bin)

# Install the assets
install(DIRECTORY ${CMAKE_SOURCE_DIR}/assets DESTINATION share/Orion)

# Install the api keys
install(FILES
${CMAKE_SOURCE_DIR}/.openai_api_key.txt
${CMAKE_SOURCE_DIR}/.openweather_api_key.txt
${CMAKE_SOURCE_DIR}/.hass_api_key.txt
${CMAKE_SOURCE_DIR}/.google_api_key.txt
${CMAKE_SOURCE_DIR}/.google_cse_id.txt
DESTINATION bin
)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/assets DESTINATION share/Orion)

0 comments on commit 9dfc63c

Please sign in to comment.