Created
December 19, 2018 16:18
-
-
Save robertmaynard/1ded5fead10f66fe2cba8fa70b1933a6 to your computer and use it in GitHub Desktop.
cmp0077 warning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.11.0 FATAL_ERROR) | |
project(Example) | |
cmake_policy(SET CMP0077 NEW) | |
set(OPT_LOCAL_VAR FALSE) | |
option(OPT_LOCAL_VAR "TEST_VAR" ON) | |
if(OPT_LOCAL_VAR) | |
message(STATUS "option failed to overwrite existing normal variable") | |
endif() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment