build(cmake): use CMAKE_SOURCE_DIR property (#2091)

This commit is contained in:
ReenigneArcher 2024-02-03 15:29:09 -05:00 • committed by GitHub
commit 328a300550
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 165 additions and 166 deletions

View file

@ -36,6 +36,6 @@ target_compile_options(sunshine PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${SUNSHINE_COM
#WebUI build
add_custom_target(web-ui ALL
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
COMMENT "Installing NPM Dependencies and Building the Web UI"
COMMAND bash -c \"npm install && SUNSHINE_SOURCE_ASSETS_DIR=${SUNSHINE_SOURCE_ASSETS_DIR} SUNSHINE_ASSETS_DIR=${CMAKE_BINARY_DIR} npm run build\") # cmake-lint: disable=C0301