Skip to content

Instantly share code, notes, and snippets.

@robertmaynard
Created December 19, 2018 16:18
Show Gist options
  • Save robertmaynard/1ded5fead10f66fe2cba8fa70b1933a6 to your computer and use it in GitHub Desktop.
Save robertmaynard/1ded5fead10f66fe2cba8fa70b1933a6 to your computer and use it in GitHub Desktop.
cmp0077 warning
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