From 565ba9c6110cc20b381d0cf6921564b23a46a362 Mon Sep 17 00:00:00 2001 From: Justin Carpentier Date: Tue, 14 Nov 2023 16:17:57 +0100 Subject: [PATCH] stubs: fix logic --- stubs.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stubs.cmake b/stubs.cmake index e319b936a..44a478efc 100644 --- a/stubs.cmake +++ b/stubs.cmake @@ -97,10 +97,10 @@ function(GENERATE_STUBS module_path module_name module_install_dir) endif($ENV{PYTHONPATH}) if(WIN32) - if($ENV{PATH}) - set(WINDOWS_PATH ${module_path};$ENV{PATH}) - else() + if("$ENV{PATH}" STREQUAL "") set(WINDOWS_PATH ${module_path}) + else() + set(WINDOWS_PATH ${module_path};$ENV{PATH}) endif() set(ENV_WINDOWS_PATH "PATH=${WINDOWS_PATH}")