diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2020-01-14 17:48:08 (GMT) |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2020-01-14 17:48:08 (GMT) |
commit | 274a6f3699c1ad7b099bbabf49618f23122d84f0 (patch) | |
tree | 881df0530d3d267f6b46eb4bee61468ae595fad2 /Tests/RunCMake/VS10Project/UnityBuildPre2017-check.cmake | |
parent | e74049b3887432cbb972bb0948edf6615a7ebd69 (diff) | |
download | CMake-274a6f3699c1ad7b099bbabf49618f23122d84f0.zip CMake-274a6f3699c1ad7b099bbabf49618f23122d84f0.tar.gz CMake-274a6f3699c1ad7b099bbabf49618f23122d84f0.tar.bz2 |
Unity Build: include language in generated source file name
Fixes: #20206
Diffstat (limited to 'Tests/RunCMake/VS10Project/UnityBuildPre2017-check.cmake')
-rw-r--r-- | Tests/RunCMake/VS10Project/UnityBuildPre2017-check.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/VS10Project/UnityBuildPre2017-check.cmake b/Tests/RunCMake/VS10Project/UnityBuildPre2017-check.cmake index 1c6bab8..17e7b46 100644 --- a/Tests/RunCMake/VS10Project/UnityBuildPre2017-check.cmake +++ b/Tests/RunCMake/VS10Project/UnityBuildPre2017-check.cmake @@ -1,4 +1,4 @@ -set(unitybuild_c0 "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/tgt.dir/Unity/unity_0.c") +set(unitybuild_c0 "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/tgt.dir/Unity/unity_0_c.c") if(NOT EXISTS "${unitybuild_c0}") set(RunCMake_TEST_FAILED "Generated unity source files ${unitybuild_c0} does not exist.") return() @@ -28,7 +28,7 @@ foreach(line IN LISTS tgt_projects_strings) endforeach() string(REPLACE "\\" "/" unity_source_line ${unity_source_line}) -string(FIND "${unity_source_line}" "CMakeFiles/tgt.dir/Unity/unity_0.c" unity_source_file_position) +string(FIND "${unity_source_line}" "CMakeFiles/tgt.dir/Unity/unity_0_c.c" unity_source_file_position) if (unity_source_file_position EQUAL "-1") set(RunCMake_TEST_FAILED "Generated project should include the generated unity source file.") return() |