git: 493cff296abe - main - science/openmodelica: Fix build without ccache

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 16 Dec 2022 09:44:28 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=493cff296abe79f40fce0c57e9598bf2eadc693a

commit 493cff296abe79f40fce0c57e9598bf2eadc693a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-16 09:41:36 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-16 09:43:55 +0000

    science/openmodelica: Fix build without ccache
    
    As it turned out it was refusing to build w/out ccache (which I had enabled by default).
    
    Reported by:    fallout
---
 science/openmodelica/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/science/openmodelica/Makefile b/science/openmodelica/Makefile
index e3137dda280e..ac122b9230fa 100644
--- a/science/openmodelica/Makefile
+++ b/science/openmodelica/Makefile
@@ -65,6 +65,8 @@ GH_TUPLE=	\
 CMAKE_ARGS=	-DCMAKE_MAKE_PROGRAM=gmake \
 		-DPython_EXECUTABLE=${PYTHON_CMD}
 
+CMAKE_ARGS+=	-DDOM_USE_CCACHE:BOOL=${CCACHE_ENABLED:S/yes/ON/:S/no/OFF/} # if refuses to build w/out ccache by default
+
 LDFLAGS+=	-lexecinfo -lintl -pthread
 
 BINARY_ALIAS=	make=${GMAKE} gcc=${FILESDIR}/gcc.sh git=false