Skip to content

Commit 093b191

Browse files
Dominic Pricedominicprice
authored andcommitted
Fixes for Windows
1 parent e0215e3 commit 093b191

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

cmake/windows.cmake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ endif()
1111
if (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()
1616
endif()
1717
if (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}")
1922
else()
2023
message(FATAL_ERROR "Could not find vcpkg (required for building on Visual Studio)")
2124
endif()

core/cadabra2_defaults.py.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ def save_history(history_path):
180180

181181
try:
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)

0 commit comments

Comments
 (0)