Showing 1 changed files with 5 additions and 3 deletions
+5 -3
.fgfs/fgfs_function
... ...
@@ -56,10 +56,12 @@ function fgfs () {
56 56
                     printf "\n%s\n%s\n%s\n" "${(l:${#title}::*:)}" "$title" "${(l:${#title}::*:)}"
57 57
 
58 58
                     local cmake_options=("-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=$fgfs_install/$component")
59
-                    [[ ${#previously_installed[@]} -gt 0 ]] \
60
-                        && cmake_options+=(${(j. .)${:--DCMAKE_PREFIX_PATH=$fgfs_install/${^previously_installed}}})
61
-                    cmake_options+=("-j$simultaneous")
62 59
                     test -e $fgfs_source/${component}.specific && source $fgfs_source/${component}.specific
60
+                    if test ${#previously_installed[@]} -gt 0; then
61
+                        cmake_options+=(${(j. .)${:--DCMAKE_PREFIX_PATH=$fgfs_install/${^previously_installed}}})
62
+                        cmake_options+=(${(j. .)${:--DCMAKE_INCLUDE_PATH=$fgfs_install/${^previously_installed}/include}})
63
+                    fi
64
+                    cmake_options+=("-j$simultaneous")
63 65
 
64 66
                     mkdir -p $fgfs_build/$component
65 67
                     cd $fgfs_build/$component