Skip to content

Commit cd7bb33

Browse files
committed
Fix cmake for examples
When scalacble pool is disabled, set_test_properties will be called on non-existent test which causes an error. Move set_property under appropriate if.
1 parent 81dc909 commit cd7bb33

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ if(UMF_POOL_SCALABLE_ENABLED)
3333
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
3434

3535
set_tests_properties(${EXAMPLE_NAME} PROPERTIES LABELS "example")
36-
endif()
3736

38-
if(WINDOWS)
39-
# append PATH to DLLs
40-
set_property(TEST ${EXAMPLE_NAME} PROPERTY ENVIRONMENT_MODIFICATION
41-
"${DLL_PATH_LIST}")
37+
if(WINDOWS)
38+
# append PATH to DLLs
39+
set_property(TEST ${EXAMPLE_NAME} PROPERTY ENVIRONMENT_MODIFICATION
40+
"${DLL_PATH_LIST}")
41+
endif()
4242
endif()
4343

4444
if(UMF_BUILD_GPU_EXAMPLES

0 commit comments

Comments
 (0)