def test_empty_package_with_no_output_dep(self): p1 = Package('p1', [], []) p2 = Package('p2', [p1], []) p1.has_output = False out = StringIO() generate([p1, p2], out) cmake = list(lex(out)) _, libs = find_command(cmake, 'target_link_libraries', ['p2']) assert ('p1' not in libs)
def test_empty_package_with_no_output_dep(self): p1 = Package('p1', [], []) p2 = Package('p2', [p1], []) p1.has_output = False files = {} generate([p1, p2], get_filestore_writer(files)) cmake = list(lex(files['p2.cmake'])) _, libs = find_command(cmake, 'target_link_libraries') assert ('p1' not in libs)