Files
openide/native/fsNotifier/mac/CMakeLists.txt
Florian Kistner 9bddc1bd50 Darwin arm64: Fix native helpers compiler warnings
GitOrigin-RevId: 4449afe13eaff0ca6059a283e33c5e539d532710
2020-11-19 11:01:32 +00:00

16 lines
449 B
CMake

cmake_minimum_required(VERSION 3.1)
project(fsnotifier C)
if(NOT APPLE)
message(FATAL_ERROR "macOS only.")
endif()
set(CMAKE_C_STANDARD 11)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
add_compile_options("-fmodules" "-flto=full" "-Wall" "-Wextra" "-Wpedantic" "-Wno-newline-eof")
add_executable(fsnotifier fsnotifier.c)
install(TARGETS fsnotifier DESTINATION ${CMAKE_CURRENT_LIST_DIR}/../../../bin/mac)