diff options
author | Brad King <brad.king@kitware.com> | 2022-07-28 12:11:11 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-07-28 12:11:19 (GMT) |
commit | d9cca8e83df9900565e5101e389c916c33f80466 (patch) | |
tree | ddd6098aadae8b7c63159273d616694b6ed83421 /Tests | |
parent | e7670480b35472915979d72eeac413859b8ef1ab (diff) | |
parent | 27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd (diff) | |
download | CMake-d9cca8e83df9900565e5101e389c916c33f80466.zip CMake-d9cca8e83df9900565e5101e389c916c33f80466.tar.gz CMake-d9cca8e83df9900565e5101e389c916c33f80466.tar.bz2 |
Merge topic 'verify-interface-header-sets-add-compile-definitions'
27fd172d8d VERIFY_INTERFACE_HEADER_SETS: Finalize compile info for verify targets
626e641a19 cmTarget: Factor out FinalizeTargetCompileInfo()
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7516
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/VerifyHeaderSets/a.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets.cmake b/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets.cmake index 82ed935..a601491 100644 --- a/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets.cmake +++ b/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets.cmake @@ -1,5 +1,7 @@ enable_language(C CXX) +add_compile_definitions(TEST_ADD_COMPILE_DEFINITIONS) + set_property(SOURCE a.h PROPERTY LANGUAGE C) set_property(SOURCE dir/c.h PROPERTY LANGUAGE C) set_property(SOURCE dir/cxx.h PROPERTY LANGUAGE CXX) diff --git a/Tests/RunCMake/VerifyHeaderSets/a.h b/Tests/RunCMake/VerifyHeaderSets/a.h index 8b17182..898da49 100644 --- a/Tests/RunCMake/VerifyHeaderSets/a.h +++ b/Tests/RunCMake/VerifyHeaderSets/a.h @@ -2,4 +2,8 @@ # error "TEST_A_H defined" #endif +#ifndef TEST_ADD_COMPILE_DEFINITIONS +# error "TEST_ADD_COMPILE_DEFINITIONS not defined" +#endif + extern void a_h(void); |