blob: 2abb26b18b597839589bf0116eabc7a51a88a692 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
diff --git a/./libs/librepcb/common/utils/mathparser.cpp.orig b/./libs/librepcb/common/utils/mathparser.cpp
index 618de36..e0903de 100644
--- a/./libs/librepcb/common/utils/mathparser.cpp.orig
+++ b/./libs/librepcb/common/utils/mathparser.cpp
@@ -22,7 +22,7 @@
******************************************************************************/
#include "mathparser.h"
-#include "muparser/include/muParser.h"
+#include <muParser.h>
/*******************************************************************************
* Namespace
diff --git a/./cmake/FindMuParser.cmake.orig b/./cmake/FindMuParser.cmake
--- a/./cmake/FindMuParser.cmake.orig 2021-11-03 01:04:32.000000000 +0300
+++ b/./cmake/FindMuParser.cmake 2022-04-24 18:01:23.996260205 +0300
@@ -37,6 +37,11 @@
if(muparser_FOUND)
message(STATUS "Using system MuParser")
+ # Add uppercase alias if only the lowercase target is defined
+ if(NOT TARGET MuParser::MuParser)
+ add_library(MuParser::MuParser ALIAS muparser::muparser)
+ endif()
+
# Stop here, we're done
return()
endif()
|