Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
openmp/cmake/OpenMPTesting.cmake
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | function(set_test_compiler_features) | ||||
if ("${OPENMP_TEST_COMPILER_ID}" STREQUAL "GNU") | if ("${OPENMP_TEST_COMPILER_ID}" STREQUAL "GNU") | ||||
set(comp "gcc") | set(comp "gcc") | ||||
elseif ("${OPENMP_TEST_COMPILER_ID}" STREQUAL "Intel") | elseif ("${OPENMP_TEST_COMPILER_ID}" STREQUAL "Intel") | ||||
set(comp "icc") | set(comp "icc") | ||||
else() | else() | ||||
# Just use the lowercase of the compiler ID as fallback. | # Just use the lowercase of the compiler ID as fallback. | ||||
string(TOLOWER "${OPENMP_TEST_COMPILER_ID}" comp) | string(TOLOWER "${OPENMP_TEST_COMPILER_ID}" comp) | ||||
endif() | endif() | ||||
set(OPENMP_TEST_COMPILER_FEATURES "['${comp}', '${comp}-${OPENMP_TEST_COMPILER_VERSION_MAJOR}', '${comp}-${OPENMP_TEST_COMPILER_VERSION_MAJOR_MINOR}', '${comp}-${OPENMP_TEST_COMPILER_VERSION}']" PARENT_SCOPE) | set(OPENMP_TEST_COMPILER_FEATURE_LIST ${comp}, ${comp}-${OPENMP_TEST_COMPILER_VERSION_MAJOR}, ${comp}-${OPENMP_TEST_COMPILER_VERSION_MAJOR_MINOR}, ${comp}-${OPENMP_TEST_COMPILER_VERSION} PARENT_SCOPE) | ||||
endfunction() | endfunction() | ||||
set_test_compiler_features() | set_test_compiler_features() | ||||
# Function to add a testsuite for an OpenMP runtime library. | # Function to add a testsuite for an OpenMP runtime library. | ||||
function(add_openmp_testsuite target comment) | function(add_openmp_testsuite target comment) | ||||
if (NOT ENABLE_CHECK_TARGETS) | if (NOT ENABLE_CHECK_TARGETS) | ||||
add_custom_target(${target} | add_custom_target(${target} | ||||
COMMAND ${CMAKE_COMMAND} -E echo "${target} does nothing, dependencies not found.") | COMMAND ${CMAKE_COMMAND} -E echo "${target} does nothing, dependencies not found.") | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |