yse / easy_profiler

Lightweight profiler library for c++
MIT License
2.14k stars 184 forks source link

CMake: fix install target for bundles (iOS/tvOS/watchOS) #194

Open SpaceIm opened 3 years ago

SpaceIm commented 3 years ago

executables in install target need a BUNDLE DESTINATION if cross-build to iOS/tvOS/watchOS

By removing RUNTIME, the same DESTINATION is set for all types, including BUNDLE (and since there are only executables in those install commands, we don't care of ARCHIVE and LIBRARY destination).

see https://cmake.org/cmake/help/latest/policy/CMP0006.html (and MACOSX_BUNDLE is ON by default for iOS/tvOS/watchOS: https://cmake.org/cmake/help/latest/variable/CMAKE_MACOSX_BUNDLE.html#variable:CMAKE_MACOSX_BUNDLE)