Skip to content

Commit f3cb06b

Browse files
committed
Set generator explicitly with -G to fix g++ build on Windows
1 parent 70268be commit f3cb06b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

commands/setup

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ if ! cmake-help-contains "Visual Studio" || [ -n "$CXX" ]; then
5959
GENERATE_CMD+=("-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE")
6060

6161
if cmake-help-contains "MSYS Makefiles" && [ -z "$CMAKE_GENERATOR" ] ; then
62-
CMAKE_GENERATOR="MSYS Makefiles"
62+
export CMAKE_GENERATOR="MSYS Makefiles"
6363
fi
6464
fi
6565
if [ -n "$CMAKE_GENERATOR" ]; then
6666
BUILD_DIR="$BUILD_DIR.${CMAKE_GENERATOR// /_}"
67+
GENERATE_CMD+=("-G" "$CMAKE_GENERATOR")
68+
6769
if [ "$CMAKE_GENERATOR" = "MSYS Makefiles" ]; then
6870
export CMAKE_MAKE_PROGRAM="make"
6971
fi

0 commit comments

Comments
 (0)