summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2022-03-05 13:05:47 -0500
committerAllen Winter <allen.winter@kdab.com>2022-03-05 13:05:47 -0500
commite6a7b1f1595b0609e69752144cdae3efed0ab610 (patch)
tree9f3db8b0e079c1ec10ee486df2e50a2b88b711fc /examples
parent03c02ced21494413920744a400c638b0cb5d493f (diff)
downloadlibical-git-e6a7b1f1595b0609e69752144cdae3efed0ab610.tar.gz
buildsystem - fix more uninitialized cmake variables
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 0c241f4d..46bde676 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -28,7 +28,9 @@ else()
icalss-static
icalvcal-static
)
- target_link_libraries(doesnothing ${CMAKE_THREAD_LIBS_INIT})
+ if(DEFINED CMAKE_THREAD_LIBS_INIT)
+ target_link_libraries(doesnothing ${CMAKE_THREAD_LIBS_INIT})
+ endif()
if(ICU_FOUND)
target_link_libraries(doesnothing ${ICU_LIBRARIES})
endif()