aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-10-28 11:25:06 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-10-28 11:25:06 +0000
commite2ba8236715ee4530d08312b075d8b41cb592257 (patch)
tree85762f7025705df045d337b94965a7d439401965 /depends
parent1c7ca6e64de9b47b2295c81cb0fedd432ffaf001 (diff)
depends: Specify CMake generator explicitly
Building packages in depends implies using GNU Make. However, this assumption can be wrong in environments where the `CMAKE_GENERATOR` variable is set. This change explicitly makes CMake use the "Unix Makefiles" generator.
Diffstat (limited to 'depends')
-rw-r--r--depends/funcs.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/depends/funcs.mk b/depends/funcs.mk
index a2f760bd0e..b07432adec 100644
--- a/depends/funcs.mk
+++ b/depends/funcs.mk
@@ -179,7 +179,8 @@ $(1)_cmake=env CC="$$($(1)_cc)" \
CXX="$$($(1)_cxx)" \
CXXFLAGS="$$($(1)_cppflags) $$($(1)_cxxflags)" \
LDFLAGS="$$($(1)_ldflags)" \
- cmake -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)" \
+ cmake -G "Unix Makefiles" \
+ -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)" \
-DCMAKE_AR=`which $$($(1)_ar)` \
-DCMAKE_NM=`which $$($(1)_nm)` \
-DCMAKE_RANLIB=`which $$($(1)_ranlib)` \