mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-14 17:14:07 +01:00
Enable precompiled headers on OSX
Learned today how to disable precompiled header usage for specific files, so we can now enable PCH usage on OSX.
This commit is contained in:
@@ -1221,21 +1221,20 @@ elseif( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
|||||||
)
|
)
|
||||||
set_target_property_all( ${TARGET} RUNTIME_OUTPUT_DIRECTORY "${_DESTDIR}" )
|
set_target_property_all( ${TARGET} RUNTIME_OUTPUT_DIRECTORY "${_DESTDIR}" )
|
||||||
|
|
||||||
# These sources must be compiled as Objective C++
|
# These sources must be compiled as Objective C++ and excluded
|
||||||
|
# from precompiled header usage
|
||||||
set_source_files_properties(
|
set_source_files_properties(
|
||||||
KeyboardCapture.cpp
|
KeyboardCapture.cpp
|
||||||
effects/EffectUI.cpp
|
effects/EffectUI.cpp
|
||||||
|
effects/VST/VSTControlOSX.mm
|
||||||
|
effects/audiounits/AUControl.mm
|
||||||
menus/WindowMenus.cpp
|
menus/WindowMenus.cpp
|
||||||
|
widgets/FileDialog/mac/FileDialogPrivate.mm
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
COMPILE_FLAGS "-x objective-c++"
|
COMPILE_FLAGS "-x objective-c++"
|
||||||
|
SKIP_PRECOMPILE_HEADERS YES
|
||||||
)
|
)
|
||||||
|
|
||||||
# Because of the "misidentified" Objective C++ sources listed above,
|
|
||||||
# we can only use precompiled headers if also using Xcode.
|
|
||||||
if( NOT "${CMAKE_GENERATOR}" MATCHES "Xcode" )
|
|
||||||
set( PRECOMP )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Add our required frameworks
|
# Add our required frameworks
|
||||||
list( APPEND LIBRARIES
|
list( APPEND LIBRARIES
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
|||||||
Reference in New Issue
Block a user