Skip to content

Commit da0d4fc

Browse files
Blake-Maddenpcanal
andcommitted
Unset variables if not matched yet
Co-authored-by: Philippe Canal <pcanal@fnal.gov>
1 parent f0e2845 commit da0d4fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/modules/FindR.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ if(WIN32 AND R_EXECUTABLE MATCHES "R_EXECUTABLE-NOTFOUND")
7676
if (R_EXECUTABLE AND R_SCRIPT)
7777
break()
7878
endif()
79+
unset(R_EXECUTABLE)
80+
unset(R_SCRIPT)
7981
endif()
8082
endforeach()
8183
endif()

0 commit comments

Comments
 (0)