Skip to content

Commit e2e9a25

Browse files
committed
Removing mac os from specific supported OSes and modifyng paraview script to work on mac os
1 parent 0ac11e5 commit e2e9a25

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

cmake/external/ParaView.cmake

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ endif()
99

1010
if(EXISTS "${CMAKE_SOURCE_DIR}/third_party/paraview")
1111
file(COPY "${CMAKE_SOURCE_DIR}/third_party/paraview" DESTINATION "${CMAKE_SOURCE_DIR}/build/third_party")
12-
#set(CMAKE_BDM_PVVERSION "5.11")
12+
if(APPLE)
13+
set(CMAKE_BDM_PVVERSION "5.9")
14+
endif()
1315

1416
else()
1517
execute_process(COMMAND bash ${PARAVIEW_BLD_SCRIPT_LOCATION}/build-paraview_new.sh ${CMAKE_SOURCE_DIR} RESULT_VARIABLE PARAVIEW_DOWNLOAD_OR_BUILD)
@@ -42,7 +44,9 @@ else()
4244
file(MAKE_DIRECTORY "${CMAKE_SOURCE_DIR}/build/third_party")
4345
endif()
4446
file(COPY "${CMAKE_SOURCE_DIR}/third_party/paraview" DESTINATION "${CMAKE_SOURCE_DIR}/build/third_party")
45-
#set(CMAKE_BDM_PVVERSION "5.11")
47+
if(APPLE)
48+
set(CMAKE_BDM_PVVERSION "5.9")
49+
endif()
4650

4751
endif()
4852
endif()

util/build-third-party/build-paraview_new.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ PYTH=""
4141
BDM_OS=$(DetectOs2)
4242

4343

44-
if [ $BDM_OS = "osx" ]; then
44+
if [ $BDM_OS == "osx" ]; then
4545

4646
if [ $brewpy == "yes" ]; then
4747
PYTH="$(brew --prefix)/bin/python${PYV2}"
@@ -68,7 +68,15 @@ mkdir -p $PARAVIEW_INSTALL_DIR
6868
mkdir -p $PARAVIEW_INSTALL_DIR/catalyst
6969
tar -xvzf $CATALYST_TGZ_FILE -C $DEST_DIR/catalyst --strip-components=1
7070
tar -Jxvf $PARAVIEW_TXZ_FILE -C $DEST_DIR --strip-components=1
71-
export Qt5_DIR=$BDM_PROJECT_DIR/build/third_party/qt
71+
if [ $BDM_OS == "osx" ]; then
72+
if [ -d $BDM_PROJECT_DIR/build/third_party/qt ]
73+
export Qt5_DIR=$BDM_PROJECT_DIR/build/third_party/qt
74+
else
75+
export Qt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5
76+
fi
77+
else
78+
export Qt5_DIR=$BDM_PROJECT_DIR/build/third_party/qt
79+
fi
7280
cd $DEST_DIR/catalyst
7381
mkdir obj
7482
cd obj

util/installation/common/util.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# (Thus reducing code duplication)
1818

1919
SCRIPTPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
20-
SPECIFIC_OSES_SUPPORTED="ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, centos-7 osx"
20+
SPECIFIC_OSES_SUPPORTED="ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, centos-7"
2121

2222
#include echo.sh
2323
. $SCRIPTPATH/echo.sh

0 commit comments

Comments
 (0)