aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2022-06-16 20:56:53 +0300
committerWohlstand <admin@wohlnet.ru>2022-06-16 20:56:53 +0300
commit219d03678d35cc8667490e2eae38b58e354347d3 (patch)
treed7fbe55f428f75a359cc34eedfbc36281a3d51b5 /cmake
parent0980abf45c275d2a46245e1b1d3da30e56975970 (diff)
downloadlibADLMIDI-219d03678d35cc8667490e2eae38b58e354347d3.tar.gz
libADLMIDI-219d03678d35cc8667490e2eae38b58e354347d3.tar.bz2
libADLMIDI-219d03678d35cc8667490e2eae38b58e354347d3.zip
Fixed DJGPP wrapper for Qt Creator's recognition
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/djgpp/djgpp-cmake-core.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmake/djgpp/djgpp-cmake-core.sh b/cmake/djgpp/djgpp-cmake-core.sh
index a46b7ad..1e3f0fc 100755
--- a/cmake/djgpp/djgpp-cmake-core.sh
+++ b/cmake/djgpp/djgpp-cmake-core.sh
@@ -9,9 +9,12 @@ djgpp_prefix=/usr/local/djgpp
# export CFLAGS="$djgpp_c_flags"
# export CXXFLAGS="$djgpp_c_flags"
-CUSTOM_PATH=${cmake_toolchain_root}:${djgpp_prefix}/bin:${djgpp_prefix}/libexec/gcc/i586-pc-msdosdjgpp/7.2.0:$PATH
+CUSTOM_PATH=${cmake_toolchain_root}:${djgpp_prefix}/bin:${djgpp_prefix}/libexec/gcc/i586-pc-msdosdjgpp/12.1.0:/usr/local/bin:$PATH
-if [[ "$1" != '--build' ]]; then
+if [[ "$1" == '-E' && "$2" == 'capabilities' ]]; then
+ PATH=${CUSTOM_PATH} cmake "$@"
+
+elif [[ "$1" != '--build' ]]; then
echo "KEK [${CUSTOM_PATH}]"
PATH=${CUSTOM_PATH} cmake \
@@ -25,10 +28,8 @@ if [[ "$1" != '--build' ]]; then
# -DLIB_INSTALL_DIR:PATH=${djgpp_prefix}/lib \\
# -DSYSCONF_INSTALL_DIR:PATH=${djgpp_prefix}/etc \\
# -DSHARE_INSTALL_DIR:PATH=${djgpp_prefix}/share \\
-
else
PATH=${CUSTOM_PATH} cmake "$@"
fi
#-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/i686-pc-msdosdjgpp-wine
-