diff options
author | Brad King <brad.king@kitware.com> | 2018-09-19 14:32:55 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-09-19 14:33:01 (GMT) |
commit | 76a19eb6c16272e4600267aed6ed7aff0fd9c765 (patch) | |
tree | f4052ab80d82c26830286fa724f064186ec4836c /Tests | |
parent | 3ada513413e2a911efac2de2c90bbebd820fef5d (diff) | |
parent | 2428422c02de1feac008d2ba1a6ad075aaf7ba2c (diff) | |
download | CMake-76a19eb6c16272e4600267aed6ed7aff0fd9c765.zip CMake-76a19eb6c16272e4600267aed6ed7aff0fd9c765.tar.gz CMake-76a19eb6c16272e4600267aed6ed7aff0fd9c765.tar.bz2 |
Merge topic 'fix-getsafedef-stdstring'
2428422c02 Fix regression in target output file naming logic
d686f81e58 Restore possibly regressed CMP0018 logic
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2402
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/OutName/CMakeLists.txt | 6 | ||||
-rw-r--r-- | Tests/OutName/main.c | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index a22521b..28aab1c 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -368,6 +368,7 @@ if(BUILD_TESTING) ADD_TEST_MACRO(CxxSubdirC CxxSubdirC) ADD_TEST_MACRO(IPO COnly/COnly) ADD_TEST_MACRO(OutDir runtime/OutDir) + ADD_TEST_MACRO(OutName exe.OutName.exe) ADD_TEST_MACRO(ObjectLibrary UseCshared) ADD_TEST_MACRO(NewlineArgs NewlineArgs) ADD_TEST_MACRO(SetLang SetLang) diff --git a/Tests/OutName/CMakeLists.txt b/Tests/OutName/CMakeLists.txt new file mode 100644 index 0000000..f024def --- /dev/null +++ b/Tests/OutName/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.12) +project(OutName C) + +add_executable(OutName main.c) +set_property(TARGET OutName PROPERTY PREFIX exe.) +set_property(TARGET OutName PROPERTY SUFFIX .exe) diff --git a/Tests/OutName/main.c b/Tests/OutName/main.c new file mode 100644 index 0000000..8488f4e --- /dev/null +++ b/Tests/OutName/main.c @@ -0,0 +1,4 @@ +int main(void) +{ + return 0; +} |