Files
CMake/Tests/RunCMake/ArtifactOutputDirs/check.cmake
T
Asit Dhal 64c3857780 OUTPUT_DIRECTORY: Support tgt genex in output artifact vars
Following variables now support target dependent generator expressions.
- CMAKE_RUNTIME_OUTPUT_DIRECTORY
- CMAKE_LIBRARY_OUTPUT_DIRECTORY
- CMAKE_ARCHIVE_OUTPUT_DIRECTORY

Fixes: #18055
2021-01-26 12:13:15 -05:00

22 lines
766 B
CMake

set(expected ${artifact_path}/rtbin/${exe_name})
if(NOT EXISTS "${expected}")
message(SEND_ERROR "executable artifact not created in the expected path:\n ${expected}")
endif()
set(expected ${artifact_path}/staticlib/${static_name})
if(NOT EXISTS "${expected}")
message(SEND_ERROR "static artifact not created in the expected path:\n ${expected}")
endif()
if(expect_dll)
set(expected ${artifact_path}/rtlib/${shared_name})
if(NOT EXISTS "${expected}")
message(SEND_ERROR "dll artifact not created in the expected path:\n ${expected}")
endif()
else()
set(expected ${artifact_path}/sharedlib/${shared_name})
if(NOT EXISTS "${expected}")
message(SEND_ERROR "shared artifact not created in the expected path:\n ${expected}")
endif()
endif()