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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
48becaa1
Commit
48becaa1
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
doc .def
parent
e34d0310
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+4
-1
4 additions, 1 deletion
CMakeLists.txt
with
4 additions
and
1 deletion
CMakeLists.txt
+
4
−
1
View file @
48becaa1
...
...
@@ -221,7 +221,9 @@ if(MSVC)
endforeach
(
VAR
)
endif
(
ENABLE_MSVC_STATIC_RUNTIME
)
if
(
ENABLE_BUILD_DYNAMIC OR ENABLE_BUILD_SHARED
)
# automatically export .def file (requires CMake 3.4)
# automatically export .def file with all symbols (requires CMake 3.4);
# depending on the compiling options this might lead to more than 64k export
# symbols; just trim the .def file to keep the ones you need
set
(
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE
)
endif
(
ENABLE_BUILD_DYNAMIC OR ENABLE_BUILD_SHARED
)
endif
(
MSVC
)
...
...
@@ -1511,6 +1513,7 @@ if(WIN32 AND NOT MSVC OR CYGWIN)
set_target_properties
(
gmsh PROPERTIES
LINK_FLAGS
"
${
FLAGS
}
-Wl,--enable-auto-import"
)
set
(
LIBGMSH_DEF
"libGmsh-
${
GMSH_MAJOR_VERSION
}
.
${
GMSH_MINOR_VERSION
}
.def"
)
# automatically export .def file with all symbols
set_target_properties
(
shared PROPERTIES PREFIX
"lib"
LINK_FLAGS
"
${
FLAGS
}
-Wl,--export-all-symbols,--output-def,
${
LIBGMSH_DEF
}
"
)
else
(
ENABLE_BUILD_DYNAMIC OR ENABLE_BUILD_SHARED
)
...
...
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