Skip to content

Commit

Permalink
Pass CMAKE_GENERATOR
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Nov 8, 2024
1 parent 4c034b6 commit 058fdaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/AwsPrebuildDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ function(aws_prebuild_dependency)
if (CMAKE_TOOLCHAIN_FILE)
list(APPEND cmakeCommand -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE})
endif()

# In case a custom generator was provided via -G option. If we don't propagate it, the default value might
# conflict with other cmake options (e.g. CMAKE_MAKE_PROGRAM).
list(APPEND cmakeCommand -G${CMAKE_GENERATOR})

# Append provided arguments to CMake command.
if(AWS_PREBUILD_CMAKE_ARGUMENTS)
list(APPEND cmakeCommand ${AWS_PREBUILD_CMAKE_ARGUMENTS})
Expand Down

0 comments on commit 058fdaa

Please sign in to comment.