Skip to content

Commit b41fca1

Browse files
committed
Detecting python properly on Windows for tests
1 parent 2a184a6 commit b41fca1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ FetchContent_MakeAvailable(doctest)
1919

2020
find_package(ICU 67 COMPONENTS uc)
2121

22-
if(${Python3_Development_FOUND})
22+
if(${Python3_Development_FOUND} AND ${Python3_Interpreter_FOUND})
2323
include_directories(
2424
SYSTEM
2525
${Python3_INCLUDE_DIRS}
@@ -49,7 +49,7 @@ if (WIN32)
4949
unix_gen
5050
)
5151

52-
if (Python3_Development_FOUND)
52+
if (${Python3_Development_FOUND} AND ${Python3_Interpreter_FOUND})
5353

5454
list(APPEND STORAGE_TYPES python)
5555

@@ -62,7 +62,7 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
6262
unix_gen
6363
)
6464

65-
if (Python3_Development_FOUND)
65+
if (${Python3_Development_FOUND} AND ${Python3_Interpreter_FOUND})
6666

6767
list(APPEND STORAGE_TYPES python)
6868

@@ -88,7 +88,7 @@ else()
8888
def
8989
)
9090

91-
if (Python3_FOUND)
91+
if (${Python3_Development_FOUND} AND ${Python3_Interpreter_FOUND})
9292

9393
list(APPEND STORAGE_TYPES python)
9494

0 commit comments

Comments
 (0)