[vcpkg baseline][saucer] Re-fix configure error (#26820)

* [sacuer] Re-fix configure error

* version
This commit is contained in:
Jack·Boos·Yu 2022-09-19 18:06:40 +00:00 committed by GitHub
parent 24d96bcb84
commit 11461d415a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,5 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3800146..6200c78 100644
index 3800146..61a9e60 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -80,7 +80,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE "include/saucer")
@ -7,7 +7,7 @@ index 3800146..6200c78 100644
string(TOLOWER ${saucer_backend} saucer_backed_lower)
-configure_file("constants.hpp.in" "${CMAKE_CURRENT_SOURCE_DIR}/include/saucer/constants.hpp")
+configure_file("constants.hpp.in" "${CMAKE_CURRENT_BINARY}/include/saucer/constants.hpp")
+configure_file("constants.hpp.in" "${CMAKE_BINARY_DIR}/include/saucer/constants.hpp")
# --------------------------------------------------------------------------------------------------------
# Configure Library depending on options
@ -15,7 +15,7 @@ index 3800146..6200c78 100644
if (saucer_backend STREQUAL "Qt")
target_sources(${PROJECT_NAME} PRIVATE "src/webview.qt5.cpp" "src/window.qt5.cpp")
target_sources(${PROJECT_NAME} PRIVATE "src/webview.qt5.impl.hpp" "src/window.qt5.impl.hpp")
+ target_sources(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_BINARY}/include/saucer/constants.hpp")
+ target_sources(${PROJECT_NAME} PRIVATE "${CMAKE_BINARY_DIR}/include/saucer/constants.hpp")
find_package(Qt5 COMPONENTS Widgets WebEngineWidgets WebChannel REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Widgets Qt5::WebEngineWidgets Qt5::WebChannel)

View File

@ -1,7 +1,7 @@
{
"name": "saucer",
"version": "1.0.1",
"port-version": 1,
"port-version": 2,
"description": "Next-gen desktop apps with web-frontend in C++",
"homepage": "https://saucer.github.io/",
"license": "MIT",

View File

@ -6558,7 +6558,7 @@
},
"saucer": {
"baseline": "1.0.1",
"port-version": 1
"port-version": 2
},
"sbp": {
"baseline": "3.4.10",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ce7e88eac61c5e370dbf6d5dc7ad56dbdded879d",
"version": "1.0.1",
"port-version": 2
},
{
"git-tree": "3738770dd615f4e229cc0bf1e6704d3c0e9e001a",
"version": "1.0.1",