summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorGeoff Viola <geoffrey.viola@asirobots.com>2016-04-24 19:47:48 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-25 14:46:09 (GMT)
commit1703a6d2c46cc7981dd80bd18d7c2e82ec5d9f82 (patch)
tree5b839beb4d5ca5aeaccccd4c42ea623a629e9470 /Tests/CMakeLists.txt
parent657a446175c1b61999a77958c5b7480f8be041a5 (diff)
downloadCMake-1703a6d2c46cc7981dd80bd18d7c2e82ec5d9f82.zip
CMake-1703a6d2c46cc7981dd80bd18d7c2e82ec5d9f82.tar.gz
CMake-1703a6d2c46cc7981dd80bd18d7c2e82ec5d9f82.tar.bz2
GHS: Fix handling of duplicate source filenames (#16046)
Green Hills MULTI project files must specify explicitly distinct object file names for source files with the same name.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 8a256bf..2db5ded 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -2103,6 +2103,17 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
endmacro ()
add_test_GhsMulti("arm_integrity_simarm" "arm_integrity.tgt" "simarm")
add_test_GhsMulti("arm64_integrity_simarm" "arm64_integrity.tgt" "simarm")
+ add_test(NAME GhsMulti.duplicate_source_filenames
+ COMMAND ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GhsMultiDuplicateSourceFilenames"
+ "${CMake_BINARY_DIR}/Tests/GhsMultiDuplicateSourceFilenames"
+ --build-generator "Green Hills MULTI"
+ --build-project ReturnNum
+ --build-config $<CONFIGURATION>
+ --build-options -DGHS_PRIMARY_TARGET="arm_integrity.tgt"
+ -DGHS_BSP_NAME="simarm"
+ )
endif ()
if(tegra AND NOT "${CMake_SOURCE_DIR};${CMake_BINARY_DIR}" MATCHES " ")