Skip to content

Commit e2ba823

Browse files
committed
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.
1 parent 1c7ca6e commit e2ba823

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

depends/funcs.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ $(1)_cmake=env CC="$$($(1)_cc)" \
179179
CXX="$$($(1)_cxx)" \
180180
CXXFLAGS="$$($(1)_cppflags) $$($(1)_cxxflags)" \
181181
LDFLAGS="$$($(1)_ldflags)" \
182-
cmake -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)" \
182+
cmake -G "Unix Makefiles" \
183+
-DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)" \
183184
-DCMAKE_AR=`which $$($(1)_ar)` \
184185
-DCMAKE_NM=`which $$($(1)_nm)` \
185186
-DCMAKE_RANLIB=`which $$($(1)_ranlib)` \

0 commit comments

Comments
 (0)