8 lines
259 B
CMake
Raw Normal View History

2020-08-30 11:54:41 +02:00
cmake_minimum_required(VERSION 3.16)
project(CheckOBJCCompilerFlag OBJC)
2020-02-01 23:06:01 +01:00
include(CheckOBJCCompilerFlag)
2020-08-30 11:54:41 +02:00
check_objc_compiler_flag(-DFOO HAS_COMPILER_FLAG)
2020-02-01 23:06:01 +01:00
if(NOT HAS_COMPILER_FLAG)
message(SEND_ERROR "Test fail: HAS_COMPILER_FLAG: ${COMPILER_FLAG}")
2020-08-30 11:54:41 +02:00
endif()