Skip to content
GitLab
Explore
Sign in
Register
This is an archived project. Repository and other project resources are read-only.
Commits on Source (2)
STYLE: adjust naming of CMakeLists and comments in Allwmake
· 6bf21bde
Mark OLESEN
authored
Nov 29, 2018
6bf21bde
CONFIG: add so version to libcatalystFoam
· 0e65a8c9
Mark OLESEN
authored
Nov 29, 2018
0e65a8c9
Hide whitespace changes
Inline
Side-by-side
src/catalyst/Allwclean
View file @
0e65a8c9
...
...
@@ -7,6 +7,6 @@ rm -f $FOAM_SITE_LIBBIN/libcatalystFoam* 2>/dev/null # ... extra safety
rm
-f
$FOAM_USER_LIBBIN
/libcatalystFoam
*
2>/dev/null
# ... extra safety
# Cleanup generated files - remove entire top-level
removeObjectDir
$PWD
removeObjectDir
"
$PWD
"
#------------------------------------------------------------------------------
src/catalyst/Allwmake
View file @
0e65a8c9
...
...
@@ -3,14 +3,21 @@ cd ${0%/*} || exit 1 # Run from this directory
.
$WM_PROJECT_DIR
/wmake/scripts/cmakeFunctions
# The cmake functions
# CMake into objectsDir with external dependency
# - Can this function can be removed with OpenFOAM-1812 ?
#
# 1 - depend
# 2 - sourceDir
# 3... optional cmake defines
#
# Available directly in OpenFOAM-1812 but left here for a while
# to ensure we can build with slightly older versions too (2018-11-29)
#
unset
-f
cmakeVersionedInstall 2>/dev/null
cmakeVersionedInstall
()
{
local
depend
=
"
$1
"
local
sourceDir
=
"
$2
"
local
objectsDir
shift
2
local
objectsDir sentinel
# Where generated files are stored
objectsDir
=
$(
findObjectDir
"
$sourceDir
"
)
||
exit
1
# Fatal
...
...
@@ -19,8 +26,8 @@ cmakeVersionedInstall()
sentinel
=
$(
sameDependency
"
$depend
"
"
$sourceDir
"
)
||
\
rm
-rf
"
$objectsDir
"
>
/dev/null 2>&1
mkdir
-p
$objectsDir
\
&&
(
cd
$objectsDir
&&
_cmake
"
$@
"
$sourceDir
&&
make
install
)
\
mkdir
-p
"
$objectsDir
"
\
&&
(
cd
"
$objectsDir
"
&&
_cmake
"
$@
"
"
$sourceDir
"
&&
make
install
)
\
&&
echo
"
$depend
"
>
|
"
${
sentinel
:-
/dev/null
}
"
}
...
...
@@ -52,7 +59,7 @@ then
then
if
command
-v
cmake
>
/dev/null 2>&1
then
cmakeVersionedInstall
"
$depend
"
$PWD
"
$cmakeOpts
"
||
{
cmakeVersionedInstall
"
$depend
"
"
$PWD
"
"
$cmakeOpts
"
||
{
echo
echo
" WARNING: incomplete build of ParaView Catalyst"
echo
...
...
src/catalyst/CMakeLists-
Catalys
t.txt
→
src/catalyst/CMakeLists-
Projec
t.txt
View file @
0e65a8c9
...
...
@@ -96,6 +96,13 @@ add_library(
${SOURCE_FILES}
)
set_target_properties(
catalystFoam
PROPERTIES
VERSION ${PARAVIEW_VERSION_MAJOR}.${PARAVIEW_VERSION_MINOR}.${PARAVIEW_VERSION_PATCH}
SOVERSION ${PARAVIEW_VERSION_MAJOR}.${PARAVIEW_VERSION_MINOR}
)
target_link_libraries(
catalystFoam
${LINK_LIBRARIES}
...
...
src/catalyst/CMakeLists.txt
View file @
0e65a8c9
...
...
@@ -35,6 +35,6 @@ message("================")
#-----------------------------------------------------------------------------
include
(
CMakeLists-
Catalys
t.txt
)
include
(
CMakeLists-
Projec
t.txt
)
#-----------------------------------------------------------------------------