mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
Fix cmake wrapper breaking cmake build options
Since cmake 3.20, "-D" prevents any build options (--build, --target, -j, etc) from working. It will abort with an "unrecognized argument" error. Fix the issue by passing the toolchain file as an env variable to cmake, not with -D.
This commit is contained in:
parent
e59a63461d
commit
23f82c2057
@ -12,5 +12,6 @@ fi
|
||||
|
||||
eval "`$dir/$host-osxcross-conf`"
|
||||
export OSXCROSS_HOST="$host"
|
||||
export CMAKE_TOOLCHAIN_FILE="$OSXCROSS_TARGET_DIR"/toolchain.cmake
|
||||
|
||||
exec cmake -DCMAKE_TOOLCHAIN_FILE="$OSXCROSS_TARGET_DIR"/toolchain.cmake "$@"
|
||||
exec cmake "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user