Skip to content

Commit

Permalink
[macOS] configure_mac.cmake: Support pass-through arguments to CMake …
Browse files Browse the repository at this point in the history
…configure
  • Loading branch information
past-due committed Feb 25, 2020
1 parent 0bc1b68 commit 10879d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure_mac.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.5)
# Optional input defines:
# - VCPKG_BUILD_TYPE : This will be used to modify the current triplet (once vcpkg is downloaded)
# - WZ_DISTRIBUTOR : Passed to the main WZ CMake configure command
# - ADDITIONAL_CMAKE_ARGUMENTS : Additional arguments to be passed to CMake configure

########################################################

Expand Down Expand Up @@ -238,6 +239,9 @@ set(_additional_configure_arguments "")
if(DEFINED WZ_DISTRIBUTOR)
set(_additional_configure_arguments "\"-DWZ_DISTRIBUTOR:STRING=${WZ_DISTRIBUTOR}\"")
endif()
if(DEFINED ADDITIONAL_CMAKE_ARGUMENTS)
list(APPEND _additional_configure_arguments ${ADDITIONAL_CMAKE_ARGUMENTS})
endif()

execute_process(COMMAND ${CMAKE_COMMAND} -E echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++")
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "++ Running CMake configure (to generate Xcode project)...")
Expand Down

0 comments on commit 10879d5

Please sign in to comment.