diff options
author | Allen Winter <allen.winter@kdab.com> | 2022-03-05 13:05:47 -0500 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-03-05 13:05:47 -0500 |
commit | e6a7b1f1595b0609e69752144cdae3efed0ab610 (patch) | |
tree | 9f3db8b0e079c1ec10ee486df2e50a2b88b711fc /CMakeLists.txt | |
parent | 03c02ced21494413920744a400c638b0cb5d493f (diff) | |
download | libical-git-e6a7b1f1595b0609e69752144cdae3efed0ab610.tar.gz |
buildsystem - fix more uninitialized cmake variables
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 604cd533..a8733d24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -286,6 +286,7 @@ add_feature_info( BerkeleyDB_FOUND "build in support for Berkeley DB storage" ) +set(BDB_FOUND False) if(BerkeleyDB_FOUND) set(HAVE_BDB True) add_definitions(-DDB_DBM_HSEARCH=0) #set to 1 if hsearch support is needed @@ -714,7 +715,9 @@ if(IS_ABSOLUTE ${INCLUDE_INSTALL_DIR}) else() set(includedir "\${prefix}/include") endif() -set(PTHREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}") +if(DEFINED CMAKE_THREAD_LIBS_INIT) + set(PTHREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}") +endif() configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/libical.pc.in |