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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
22771047
Commit
22771047
authored
11 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
remove compiler warnings for contrib
parent
ab819e7a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+25
-10
25 additions, 10 deletions
CMakeLists.txt
with
25 additions
and
10 deletions
CMakeLists.txt
+
25
−
10
View file @
22771047
...
...
@@ -1037,23 +1037,38 @@ if(WIN32 OR CYGWIN)
list
(
APPEND EXTERNAL_LIBRARIES winmm wsock32 ws2_32 psapi
)
endif
(
WIN32 OR CYGWIN
)
# disable compile optimization on some known problematic files
check_cxx_compiler_flag
(
"-O0"
NOOPT
)
if
(
NOOPT
)
file
(
GLOB_RECURSE NON_OPTIMIZED_SRC Numeric/robustPredicates.cpp Mesh/BDS.cpp
Parser/Gmsh.tab.cpp contrib/Tetgen*/*.cxx
)
set_source_files_properties
(
${
NON_OPTIMIZED_SRC
}
COMPILE_FLAGS
"-O0"
)
endif
(
NOOPT
)
# force full warnings to encourage everybody to write clean(er) code
check_cxx_compiler_flag
(
"-Wall"
WALL
)
if
(
WALL AND NOT MSVC
)
file
(
GLOB_RECURSE WALL_SRC Common/*.cpp Fltk/*.cpp FunctionSpace/*.cpp
Geo/*.cpp Graphics/*.cpp Mesh/*.cpp Numeric/*.cpp Parser/*.cpp
Plugin/*.cpp Post/*.cpp Qt/*.cpp Solver/*.cpp
contrib/onelab/*.cpp
)
set_source_files_properties
(
${
WALL_SRC
}
COMPILE_FLAGS
"-Wall"
)
Plugin/*.cpp Post/*.cpp Qt/*.cpp Solver/*.cpp
)
set_source_files_properties
(
${
WALL_SRC
}
PROPERTIES
COMPILE_FLAGS
"-Wall"
)
endif
(
WALL AND NOT MSVC
)
# don't issue warnings for contributed libraries
check_cxx_compiler_flag
(
"-w"
NOWARN
)
if
(
NOWARN
)
file
(
GLOB_RECURSE NOWARN_SRC contrib/*.cpp contrib/*.cc contrib/*.cxx
contrib/*.c
)
set_source_files_properties
(
${
NOWARN_SRC
}
PROPERTIES COMPILE_FLAGS
"-w"
)
endif
(
NOWARN
)
# disable compile optimization on some known problematic files
check_cxx_compiler_flag
(
"-O0"
NOOPT
)
if
(
NOOPT
)
file
(
GLOB_RECURSE NOOPT_SRC Numeric/robustPredicates.cpp Mesh/BDS.cpp
Parser/Gmsh.tab.cpp contrib/Tetgen*/*.cxx
)
foreach
(
FILE
${
NOOPT_SRC
}
)
get_source_file_property
(
PROP
${
FILE
}
COMPILE_FLAGS
)
if
(
PROP
)
set_source_files_properties
(
${
FILE
}
PROPERTIES COMPILE_FLAGS
"
${
PROP
}
-O0"
)
else
(
PROP
)
set_source_files_properties
(
${
FILE
}
PROPERTIES COMPILE_FLAGS
"-O0"
)
endif
(
PROP
)
endforeach
(
FILE
)
endif
(
NOOPT
)
list
(
SORT CONFIG_OPTIONS
)
set
(
GMSH_CONFIG_OPTIONS
""
)
foreach
(
OPT
${
CONFIG_OPTIONS
}
)
...
...
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