mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Some test cases added by commit 80f120a85f (Languages: Add support for
Objective-C, 2019-09-13, v3.16.0-rc1~44^2~3) have never actually been
run because the condition to enable them is never true. Fix the
condition and fix the tests to pass.
8 lines
267 B
CMake
8 lines
267 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(CheckOBJCXXCompilerFlag OBJCXX)
|
|
include(CheckOBJCXXCompilerFlag)
|
|
check_objcxx_compiler_flag(-DFOO HAS_COMPILER_FLAG)
|
|
if(NOT HAS_COMPILER_FLAG)
|
|
message(SEND_ERROR "Test fail: HAS_COMPILER_FLAG: ${COMPILER_FLAG}")
|
|
endif()
|