Skip to content

Commit 9d0b8ea

Browse files
committed
Do not unnecessarily extend PATH
Adding elements to the PATH appears to result in failing lookups, when the binary appears to be on the PATH already anyway.
1 parent edbfd02 commit 9d0b8ea

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

regression/cbmc/CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,11 @@ add_test_pl_profile(
2424
"CORE"
2525
)
2626

27+
# solver appears on the PATH in Windows already
2728
if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
2829
set_property(
2930
TEST "cbmc-cprover-smt2-CORE"
3031
PROPERTY ENVIRONMENT
3132
"PATH=$ENV{PATH}:$<TARGET_FILE_DIR:smt2_solver>"
3233
)
33-
else()
34-
string(REPLACE ";" "\\;" path_value "$ENV{PATH}")
35-
set_property(
36-
TEST "cbmc-cprover-smt2-CORE"
37-
PROPERTY ENVIRONMENT
38-
"PATH=${path_value}\;$<TARGET_FILE_DIR:smt2_solver>"
39-
)
4034
endif()

0 commit comments

Comments
 (0)