1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

Default (don't force) platform

This let's the user specify the platform using "cmake -A".
This commit is contained in:
Leland Lucius 2020-02-12 09:02:00 -06:00
parent efa759d7e7
commit 99aded10f5

View File

@ -36,8 +36,12 @@ if( WIN32 )
set( PYTHON_NAME "python2" )
set( PYTHON_VERSION "2.7.17" )
# For now, force the build to Win32 until we support 64-bit
set( CMAKE_GENERATOR_PLATFORM Win32 )
# Force the build to 32-bit, unless the user specifically specified
# something else.
if( NOT CMAKE_GENERATOR_PLATFORM )
message( STATUS "Defaulting to 32-bit build..." )
set( CMAKE_GENERATOR_PLATFORM Win32 )
endif()
elseif( APPLE )
# Define the OSX compatibility parameters
set( CMAKE_OSX_ARCHITECTURES x86_64 CACHE INTERNAL "" )