Fixed root cmake root directory

- The previous commit changed the invocation of Cmake, which changed the
root directory.  This broke the web page build.
This commit is contained in:
Dave 2022-12-30 13:06:44 -06:00
parent ca8cff670a
commit 23cbbeea54
2 changed files with 5 additions and 1 deletions

View File

@ -77,6 +77,9 @@ message("SRC Dir is ${PROJECT_SRC_DIR}")
set(DOC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/docs)
message("Documentation and web page directory is ${DOC_DIR}")
set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR})
message("Install root: ${CMAKE_INSTALL_PREFIX}")
set (PROJECT_TARGET_NAME ${PROJECT_NAME}-v${PROJECT_VERSION}-${ARCH})
set (PROJECT_EXECUTABLE_TARGET_NAME ${PROJECT_TARGET_NAME})

View File

@ -62,7 +62,8 @@ build_arch() {
local target_arch="$1"
local hardware_sig="$2"
cmake -S . -B "build-$target_arch" -G "$GENERATOR" -DCMAKE_INSTALL_PREFIX=".." -DARCH="$target_arch" \
cmake -S . -B "build-$target_arch" -G "$GENERATOR" \
-DCMAKE_INSTALL_PREFIX=".." -DARCH="$target_arch" \
-DCMAKE_BUILD_TYPE="$BUILD_TYPE"
}