From f3375bbb89ca289e001bea4b64d3eb5a0c26b0f5 Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Sun, 17 May 2026 16:51:14 +0400 Subject: [PATCH] cmake-1.1: improve prefix_path handling --- _resources/port1.0/group/cmake-1.1.tcl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/_resources/port1.0/group/cmake-1.1.tcl b/_resources/port1.0/group/cmake-1.1.tcl index 9f47ac5c7d8..88548c1449d 100644 --- a/_resources/port1.0/group/cmake-1.1.tcl +++ b/_resources/port1.0/group/cmake-1.1.tcl @@ -125,12 +125,9 @@ proc cmake::system_prefix_path {} { proc cmake::module_path {} { set modpath "[join [concat [option cmake_share_module_dir] [option cmake.module_path]] \;]" - if {[llength [option cmake.prefix_path]]} { - set prepath "[join [option cmake.prefix_path] \;]" - } else { - # TODO - remove this once ports are updated - set prepath ${modpath} - } + set prepath "[join [concat [option cmake.prefix_path] [option cmake.module_path]] \;]" + # TODO - replace with this once ports are updated to use the correct variable + # set prepath "[join [option cmake.prefix_path] \;]" return [list \ -DCMAKE_MODULE_PATH="${modpath}" \ -DCMAKE_PREFIX_PATH="${prepath}"