Commit c1bf1a59 authored by Stephen Kelly's avatar Stephen Kelly

CompileDefinitions: Add unit test for setting empty content.

parent 8d336875
......@@ -143,6 +143,7 @@ add_RunCMake_test(Swift)
add_RunCMake_test(TargetObjects)
add_RunCMake_test(TargetSources)
add_RunCMake_test(find_dependency)
add_RunCMake_test(CompileDefinitions)
add_RunCMake_test(CompileFeatures)
add_RunCMake_test(WriteCompilerDetectionHeader)
if(NOT WIN32)
......
cmake_minimum_required(VERSION 3.3)
project(${RunCMake_TEST} NONE)
include(${RunCMake_TEST}.cmake)
include(RunCMake)
run_cmake(SetEmpty)
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS A "" B)
get_property(result DIRECTORY PROPERTY COMPILE_DEFINITIONS)
message("RESULT1=${result}")
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS)
get_property(result DIRECTORY PROPERTY COMPILE_DEFINITIONS)
message("RESULT2=${result}")
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS -DBAR)
get_property(result DIRECTORY PROPERTY COMPILE_DEFINITIONS)
message("RESULT3=${result}")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment