Skip to content

Commit

Permalink
use system installed libraries by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Mar 30, 2024
1 parent dcf4e4f commit bf823b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
cmake_minimum_required(VERSION 3.23)

# set the project name
project(mkdssp VERSION 4.4.6 LANGUAGES CXX)
project(mkdssp VERSION 4.4.7 LANGUAGES CXX)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

include(CTest)
include(FetchContent)
include(VersionString)

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
Expand Down Expand Up @@ -97,8 +96,11 @@ endif()
set(CMAKE_THREAD_PREFER_PTHREAD)
set(THREADS_PREFER_PTHREAD_FLAG)
find_package(Threads)
find_package(libmcfp QUIET)

if(NOT libmcfp_FOUND)
include(FetchContent)

if(NOT PDB_REDO_META)
if(CMAKE_VERSION GREATER_EQUAL 3.28)
set(EXLC "EXCLUDE_FROM_ALL")
endif()
Expand All @@ -110,7 +112,11 @@ if(NOT PDB_REDO_META)
GIT_TAG v1.3.1)

FetchContent_MakeAvailable(libmcfp)
endif()

find_package(cifpp 7 QUIET)

if(NOT cifpp_FOUND)
set(CIFPP_DOWNLOAD_CCD OFF)

FetchContent_Declare(
Expand Down
3 changes: 3 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 4.4.7
- Fix cmakefile to use system installed libraries by default

Version 4.4.6
- Update dependency on libcifpp to version 7

Expand Down

0 comments on commit bf823b8

Please sign in to comment.