cmake: NIX_CFLAGS_COMPILE NIX_LDFLAG could be undefined
This commit is contained in:
parent
770a4c7946
commit
42ffaf5290
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ addEnvHooks "$targetOffset" addCMakeParams
|
|||
makeCmakeFindLibs(){
|
||||
isystem_seen=
|
||||
iframework_seen=
|
||||
for flag in $NIX_CFLAGS_COMPILE $NIX_LDFLAGS; do
|
||||
for flag in ${NIX_CFLAGS_COMPILE-} ${NIX_LDFLAGS-}; do
|
||||
if test -n "$isystem_seen" && test -d "$flag"; then
|
||||
isystem_seen=
|
||||
export CMAKE_INCLUDE_PATH="${CMAKE_INCLUDE_PATH-}${CMAKE_INCLUDE_PATH:+:}${flag}"
|
||||
|
|
Loading…
Reference in a new issue