Skip to content

Commit 22e84b2

Browse files
committed
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/meinersbur/flang_runtime_move-files
2 parents 0402db4 + c3a176e commit 22e84b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flang/unittests/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ set_target_properties(FlangUnitTests PROPERTIES FOLDER "Flang/Tests")
1313
include_directories("${FLANG_RT_SOURCE_DIR}/include")
1414

1515
function(add_flang_unittest_offload_properties target)
16+
# Do not apply runtime properties if not even compiling the runtime.
17+
if (NOT FLANG_INCLUDE_RUNTIME)
18+
return ()
19+
endif ()
20+
1621
# Set CUDA_RESOLVE_DEVICE_SYMBOLS.
1722
if (FLANG_EXPERIMENTAL_CUDA_RUNTIME)
1823
set_target_properties(${target}

0 commit comments

Comments
 (0)