Skip to content

Commit 770279c

Browse files
committed
Merge pull request #131 from torbjoernk/feature/fix-cmake
cmake: fix bug #130
2 parents 5e1d24f + 9c7ea57 commit 770279c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/scalar/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ set(scalar_examples
1212

1313
foreach(example ${scalar_examples})
1414
add_executable(${example} ${CMAKE_CURRENT_SOURCE_DIR}/${example}.cpp)
15-
if(${pfasst_DEPENDEND_TARGETS})
15+
string(LENGTH pfasst_DEPENDEND_TARGETS temp)
16+
if(${temp} GREATER 0)
1617
add_dependencies(${example} ${pfasst_DEPENDEND_TARGETS})
1718
endif()
1819
target_link_libraries(${example}

0 commit comments

Comments
 (0)