cmake-1.1: improve prefix_path handling

This commit is contained in:
Mohamed Akram
2026-05-17 16:51:14 +04:00
parent 43baa3463c
commit f3375bbb89
+3 -6
View File
@@ -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}"