You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
cmake-1.1: improve prefix_path handling
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user