Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
f53c7347
Commit
f53c7347
authored
7 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix generation of python wrappers for deprecated internal API
parent
a3817c89
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+13
-8
13 additions, 8 deletions
CMakeLists.txt
wrappers/gmshpy/CMakeLists.txt
+1
-1
1 addition, 1 deletion
wrappers/gmshpy/CMakeLists.txt
with
14 additions
and
9 deletions
CMakeLists.txt
+
13
−
8
View file @
f53c7347
...
...
@@ -169,6 +169,11 @@ set(GMSH_DEPRECATED_API
contrib/MeshQualityOptimizer/MeshQualityOptimizer.h
contrib/MathEx/mathex.h
)
get_property
(
IAMCHILD DIRECTORY PROPERTY PARENT_DIRECTORY
)
if
(
IAMCHILD
)
set
(
GMSH_DEPRECATED_API
${
GMSH_API
}
PARENT_SCOPE
)
endif
(
IAMCHILD
)
if
(
${
CMAKE_MAJOR_VERSION
}
GREATER 2
)
string
(
TIMESTAMP DATE
"%Y%m%d"
)
else
(
${
CMAKE_MAJOR_VERSION
}
GREATER 2
)
...
...
@@ -1271,7 +1276,6 @@ if(ENABLE_WRAP_PYTHON)
else
(
SWIG_MAJOR_VERSION EQUAL 1
)
set_config_option
(
HAVE_PYTHON
"Python"
)
mark_as_advanced
(
CLEAR PYTHON_LIBRARY PYTHON_INCLUDE_DIR
)
add_subdirectory
(
wrappers/gmshpy
)
if
(
ENABLE_NUMPY
)
if
(
NOT NUMPY_INC
)
EXEC_PROGRAM
(
${
PYTHON_EXECUTABLE
}
...
...
@@ -1303,13 +1307,6 @@ if(ENABLE_WRAP_PYTHON)
endif
(
SWIG_FOUND AND PYTHONLIBS_FOUND
)
endif
(
ENABLE_WRAP_PYTHON
)
if
(
ENABLE_WRAP_JAVA AND ENABLE_DEPRECATED_API
)
if
(
NOT HAVE_BLAS OR NOT HAVE_LAPACK
)
message
(
WARNING
"Java wrapping samples will not work without BLAS and LAPACK"
)
endif
(
NOT HAVE_BLAS OR NOT HAVE_LAPACK
)
add_subdirectory
(
wrappers/java
)
endif
(
ENABLE_WRAP_JAVA AND ENABLE_DEPRECATED_API
)
check_function_exists
(
vsnprintf HAVE_VSNPRINTF
)
if
(
NOT HAVE_VSNPRINTF AND NOT ENABLE_BUILD_IOS AND NOT ENABLE_BUILD_ANDROID
)
set_config_option
(
HAVE_NO_VSNPRINTF
"NoVsnprintf"
)
...
...
@@ -1937,6 +1934,14 @@ else(APPLE AND ENABLE_OS_SPECIFIC_INSTALL)
set
(
CPACK_GENERATOR TGZ
)
endif
(
APPLE AND ENABLE_OS_SPECIFIC_INSTALL
)
if
(
HAVE_PYTHON AND ENABLE_DEPRECATED_API
)
add_subdirectory
(
wrappers/gmshpy
)
endif
(
HAVE_PYTHON AND ENABLE_DEPRECATED_API
)
if
(
ENABLE_WRAP_JAVA AND ENABLE_DEPRECATED_API
)
add_subdirectory
(
wrappers/java
)
endif
(
ENABLE_WRAP_JAVA AND ENABLE_DEPRECATED_API
)
include
(
CPack
)
if
(
NOT DISABLE_GMSH_TESTS
)
...
...
This diff is collapsed.
Click to expand it.
wrappers/gmshpy/CMakeLists.txt
+
1
−
1
View file @
f53c7347
...
...
@@ -116,7 +116,7 @@ if (NOT ENABLE_GMSHPY_SOURCE_PACKAGE)
endif
(
NOT ENABLE_GMSHPY_SOURCE_PACKAGE
)
if
(
ENABLE_GMSHPY_SOURCE_PACKAGE
)
set
(
GMSH_
API
${
GMSH
_API
}
Geo/Curvature.h Mesh/Generator.h
set
(
GMSH_
DEPRECATED_API
${
GMSH_DEPRECATED
_API
}
Geo/Curvature.h Mesh/Generator.h
Mesh/meshGFaceLloyd.h Numeric/DivideAndConquer.h Post/PViewFactory.h
Solver/linearSystemPETSc.h Fltk/FlGui.h Solver/functionSpace.h
Solver/STensor43.h Solver/sparsityPattern.h Solver/SElement.h
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment