git: a399b2ad3caf - main - science/openkim-models: fix in advance of CMake 3.26
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Apr 2023 22:29:39 UTC
The branch main has been updated by adridg: URL: https://cgit.FreeBSD.org/ports/commit/?id=a399b2ad3caf4a31fa6d2789821bf97680f1d7ee commit a399b2ad3caf4a31fa6d2789821bf97680f1d7ee Author: Adriaan de Groot <adridg@FreeBSD.org> AuthorDate: 2023-03-20 12:14:44 +0000 Commit: Adriaan de Groot <adridg@FreeBSD.org> CommitDate: 2023-04-12 22:27:10 +0000 science/openkim-models: fix in advance of CMake 3.26 Needs to pull in **some** language (so pull in the languages that all the models want) to find the size of (void *) --- science/openkim-models/Makefile | 1 + science/openkim-models/files/patch-CMakeLists.txt | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/science/openkim-models/Makefile b/science/openkim-models/Makefile index 3446ec05ee16..35563970d860 100644 --- a/science/openkim-models/Makefile +++ b/science/openkim-models/Makefile @@ -1,5 +1,6 @@ PORTNAME= openkim-models DISTVERSION= 2021-08-11 +PORTREVISION= 1 CATEGORIES= science MASTER_SITES= https://s3.openkim.org/archives/collection/ diff --git a/science/openkim-models/files/patch-CMakeLists.txt b/science/openkim-models/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..5fb51b233d0d --- /dev/null +++ b/science/openkim-models/files/patch-CMakeLists.txt @@ -0,0 +1,18 @@ +Need to check **some** language in order to get sizeof(void *), +otherwise the calls to find the kim-api package will fail with +a message saying that 2.3.0 (64 bit) is unsupported. + +--- CMakeLists.txt.orig 2023-03-20 12:08:16 UTC ++++ CMakeLists.txt +@@ -25,9 +25,10 @@ + + + cmake_minimum_required(VERSION 3.10) +-project(openkim-models LANGUAGES NONE) ++project(openkim-models LANGUAGES CXX C Fortran) + enable_testing() + ++message(STATUS "VOID_P=${CMAKE_SIZEOF_VOID_P}") + file(GLOB MD "${CMAKE_SOURCE_DIR}/model-drivers/*") + foreach(item ${MD}) + add_subdirectory(${item})