Skip to content

Commit 1786450

Browse files
Copilot0xrinegade
andcommitted
Fix TypeScript compilation errors in DocsPage.tsx by escaping CMake variables
Co-authored-by: 0xrinegade <[email protected]>
1 parent 4a6eef6 commit 1786450

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

website/src/pages/DocsPage.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2885,8 +2885,8 @@ FetchContent_Declare(
28852885
)
28862886
28872887
# Set options before making available
2888-
set(BUILD_TESTS ${ENABLE_TESTING})
2889-
set(BUILD_EXAMPLES ${BUILD_EXAMPLES})
2888+
set(BUILD_TESTS \${ENABLE_TESTING})
2889+
set(BUILD_EXAMPLES \${BUILD_EXAMPLES})
28902890
28912891
FetchContent_MakeAvailable(svm-pay)`}</code></pre>
28922892
</div>
@@ -2924,15 +2924,15 @@ find_package(PkgConfig REQUIRED)
29242924
# Find cURL
29252925
find_package(CURL REQUIRED)
29262926
if(CURL_FOUND)
2927-
message(STATUS "Found cURL: ${CURL_VERSION_STRING}")
2927+
message(STATUS "Found cURL: \${CURL_VERSION_STRING}")
29282928
else()
29292929
message(FATAL_ERROR "cURL not found")
29302930
endif()
29312931
29322932
# Find OpenSSL
29332933
find_package(OpenSSL REQUIRED)
29342934
if(OPENSSL_FOUND)
2935-
message(STATUS "Found OpenSSL: ${OPENSSL_VERSION}")
2935+
message(STATUS "Found OpenSSL: \${OPENSSL_VERSION}")
29362936
else()
29372937
message(FATAL_ERROR "OpenSSL not found")
29382938
endif()
@@ -3002,7 +3002,7 @@ if(GTest_FOUND)
30023002
# Set test properties
30033003
set_tests_properties(svm_pay_unit_tests PROPERTIES
30043004
TIMEOUT 60
3005-
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
3005+
WORKING_DIRECTORY \${CMAKE_CURRENT_BINARY_DIR}
30063006
)
30073007
else()
30083008
message(WARNING "Google Test not found, tests will not be built")
@@ -3016,14 +3016,14 @@ include(GNUInstallDirs)
30163016
30173017
# Install your application
30183018
install(TARGETS my_app
3019-
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
3020-
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
3021-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
3019+
RUNTIME DESTINATION \${CMAKE_INSTALL_BINDIR}
3020+
LIBRARY DESTINATION \${CMAKE_INSTALL_LIBDIR}
3021+
ARCHIVE DESTINATION \${CMAKE_INSTALL_LIBDIR}
30223022
)
30233023
30243024
# Install configuration files
30253025
install(FILES config/app.conf
3026-
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/my_app
3026+
DESTINATION \${CMAKE_INSTALL_SYSCONFDIR}/my_app
30273027
)
30283028
30293029
# Create package

0 commit comments

Comments
 (0)