Skip to content

Commit

Permalink
Check platform
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Nov 14, 2024
1 parent f4771da commit 625ba4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/AwsPrebuildDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ function(aws_get_variables_for_prebuild_dependency AWS_CMAKE_PREBUILD_ARGS)
set(variables "")
set(variablesToIgnore CMAKE_INSTALL_PREFIX)

# The CMake variables below were chosen for Unix-like platforms. If you want to use the prebuild logic on other
# platforms, the chances are you have to handle additional variables (like CMAKE_OSX_SYSROOT).
if (NOT UNIX OR APPLE)
message(FATAL_ERROR "aws_get_variables_for_prebuild_dependency is called for unsupported platform")
endif()

get_cmake_property(vars CACHE_VARIABLES)
foreach(var ${vars})
message("= Checking ${var}")
Expand Down

0 comments on commit 625ba4f

Please sign in to comment.