summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt7
-rw-r--r--examples/access_properties_and_parameters.c2
2 files changed, 3 insertions, 6 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 8a18cf97..0c241f4d 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -30,12 +30,9 @@ else()
)
target_link_libraries(doesnothing ${CMAKE_THREAD_LIBS_INIT})
if(ICU_FOUND)
- target_link_libraries(doesnothing ${ICU_LIBRARY})
+ target_link_libraries(doesnothing ${ICU_LIBRARIES})
endif()
- if(ICU_I18N_FOUND)
- target_link_libraries(doesnothing ${ICU_I18N_LIBRARY})
- endif()
- if(BDB_FOUND)
+ if(BDB_FOUND)
target_link_libraries(doesnothing ${BDB_LIBRARY})
endif()
endif()
diff --git a/examples/access_properties_and_parameters.c b/examples/access_properties_and_parameters.c
index 9988dba0..e4c13f40 100644
--- a/examples/access_properties_and_parameters.c
+++ b/examples/access_properties_and_parameters.c
@@ -134,7 +134,7 @@ void test_properties()
free(str);
/* Make a copy of the property. Caller owns the memory */
- clone = icalproperty_new_clone(prop);
+ clone = icalproperty_clone(prop);
/* Get a reference to the value within the clone property */
value = icalproperty_get_value(clone);