File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,14 @@ endif()
1111if (NOT VCPKG_TOOLCHAIN)
1212 find_file (CMAKE_TOOLCHAIN_FILE vcpkg.cmake HINTS $ENV{userprofile} $ENV{systemdrive} PATH_SUFFIXES vcpkg/scripts/buildsystems)
1313 if (CMAKE_TOOLCHAIN_FILE)
14- include (${CMAKE_TOOLCHAIN_FILE} )
14+ include (${CMAKE_TOOLCHAIN_FILE} )
1515 endif ()
1616endif ()
1717if (VCPKG_TOOLCHAIN)
18- message (STATUS "Found vcpkg at ${_VCPKG_ROOT_DIR} " )
18+ if (NOT _VCPKG_ROOT_DIR)
19+ set (_VCPKG_ROOT_DIR ${Z_VCPKG_ROOT_DIR} )
20+ endif ()
21+ message (STATUS "Found vcpkg at ${Z_VCPKG_ROOT_DIR} " )
1922else ()
2023 message (FATAL_ERROR "Could not find vcpkg (required for building on Visual Studio)" )
2124endif ()
Original file line number Diff line number Diff line change @@ -180,6 +180,8 @@ def save_history(history_path):
180180
181181try:
182182 import readline
183+ if not hasattr(readline, 'redisplay'):
184+ readline.redisplay = lambda: None
183185 history_path = os.path.join(user_data_dir(), "cadabra_history")
184186 if os.path.exists(history_path):
185187 readline.read_history_file(history_path)
You can’t perform that action at this time.
0 commit comments