summaryrefslogtreecommitdiff
path: root/Modules/GenerateExportHeader.cmake
Commit message (Collapse)AuthorAgeFilesLines
* GenerateExportHeader: Avoid if() quoted auto-dereferenceBrad King2014-09-291-7/+7
| | | | | | When testing CMAKE_CXX_COMPILER_ID values with if(MATCHES), do not explicitly dereference or quote CMAKE_CXX_COMPILER_ID. We want if() to auto-dereference the variable and not its value.
* GenerateExportHeader: support exporting from OBJECT librariesBen Boeckel2014-07-031-0/+1
|
* Update CDash server URLBrad King2014-06-241-1/+0
| | | | It is now at open.cdash.org and does not start in "/CDash".
* GenerateExportHeader: Reformat docs.Stephen Kelly2014-01-041-64/+51
|
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-98/+150
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* GenerateExportHeader: Port to use message(DEPRECATION)Stephen Kelly2013-10-081-9/+1
|
* GenerateExportHeader: Deprecate add_compiler_export_flags function.Stephen Kelly2013-09-021-13/+34
| | | | | This is made obsolete by the CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN target properties.
* Merge topic 'geh-cleanup-identifiers'Brad King2013-05-241-0/+6
|\ | | | | | | | | 7e24997 GenerateExportHeader: Generate only C identifiers as defines
| * GenerateExportHeader: Generate only C identifiers as definesStephen Kelly2013-05-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The variables in this module are used to configure a header file with defines whose name depends on the name of the target. As valid names of targets may be invalid for use as defines, convert the names of the defines used to C identifiers first. This is already done in C++ code for the DEFINE_SYMBOL property. This is not as simple as ensuring that the BASE_NAME is a C identifier, because most of the define names are configurable, and because use of a BASE_NAME which is not a C identifier, such as 4square can become a C identifier by specifying a prefix in the generate_export_header macro.
* | GenerateExportHeader: Allow use of of this macro with MODULEs.Stephen Kelly2013-05-231-5/+3
|/ | | | | | | | | | | The significant issue with MODULEs is that on Windows, the exported symbols must be dllexported and they are not imported. In other export macro implementations this is done by defining an export macro outside of any ifdef which depends on definitions set on the command line. However, with cmake we already expect the DEFINE_SYMBOL to be defined, so the regular EXPORT macro can be used by such plugins.
* Merge topic 'generate-export-header-warnings'Brad King2013-02-251-4/+0
|\ | | | | | | | | 1e0891e Removed GenerateExportHeader warnings about old compilers
| * Removed GenerateExportHeader warnings about old compilersMarcus D. Hanwell2013-02-201-4/+0
| | | | | | | | | | These warnings tend to flood the dashboard submissions, and it is doing what it should (degrade gracefully with older compilers).
* | Fix GenerateExportHeader documentation #13936Stephen Kelly2013-02-201-1/+1
|/ | | | | There is no CMAKE_CURRENT_BUILD_DIR. CMAKE_CURRENT_BINARY_DIR is the correct variable here.
* Merge topic 'improve-generateexportheader'David Cole2012-03-021-35/+9
|\ | | | | | | | | | | c28e276 GenerateExportHeader: improve compiler identification 4412fc0 GenerateExportHeader: remove unneeded code
| * GenerateExportHeader: improve compiler identificationRolf Eike Beer2012-02-241-28/+9
| | | | | | | | | | | | Use CMAKE_<LANG>_COMPILER_VERSION instead of calling the compiler. This macro predates those useful variables. This also fixes the issue that g++ version detection was not working if C language was not enabled.
| * GenerateExportHeader: remove unneeded codeRolf Eike Beer2012-02-241-7/+0
| | | | | | | | | | These expressions check for command line arguments unsupported by the compiler. We don't pass any custom flags here anyway so this isn't needed.
* | Fix documented function signature to match reality.Stephen Kelly2012-02-211-1/+1
|/ | | | The function description is already correct.
* GenerateExportHeader: use double quotes around _gcc_versionAlex Neundorf2012-02-181-1/+1
| | | | | | | | | | | The GenerateExportHeaders test was failing on one machine, the version could not be determined there, so the _gcc_version was empty, so the first argument to if() was empty, so it complained: http://open.cdash.org/testDetails.php?test=135623436&build=2016288 Use double quotes to turn the non-existant first argument into an empty string. Alex
* GenerateExportHeader: Fix wrong use of IS_ABSOLUTE (#12645)Michael Wild2012-01-021-1/+1
| | | | | | Test content of _GEH_EXPORT_FILE_NAME, not variable name. Signed-off-by: Michael Wild <themiwi@users.sourceforge.net>
* Make add_compiler_export_flags a function again.Marcus D. Hanwell2011-09-201-6/+6
| | | | | | Making this a macro had unintended issues on (among others) Windows compilers. Moving it back to being a function using PARENT_SCOPE still satisfies the use case where we simply want to obtain the extra flags.
* Made ADD_COMPILER_EXPORT_FLAGS into a macro.Marcus D. Hanwell2011-09-191-7/+18
| | | | | It adds to the CMAKE_CXX_FLAGS (as before), or populates the supplied optional argument with the CXX_FLAGS for symbol import/export.
* Don't warn when nothing to do in visibility function.Marcus D. Hanwell2011-09-191-1/+1
|
* Just code style changes.Marcus D. Hanwell2011-09-191-30/+50
|
* Don't use a variable name that might be used in other files.David Faure2011-08-271-3/+3
| | | | | myDir is also used in the Grantlee config file, so if Grantlee was found, this call failed.
* Fix up verbatim code sections of the dox.Stephen Kelly2011-08-251-17/+1
|
* Don't start a line with a dash(-)Stephen Kelly2011-08-251-2/+2
| | | | That is a special character in cmake dox.
* Remove blank line at the start of the file.Stephen Kelly2011-08-251-2/+0
| | | | A blank line excludes the file from documentation processing.
* Add documentation about the prefix and no_deprecated options.Stephen Kelly2011-08-251-0/+42
|
* Fix the feature of using a specific prefix for macros.Stephen Kelly2011-08-251-11/+11
|
* Add quotes in case cmake is installed in a prefix with a space.Stephen Kelly2011-08-251-2/+2
|
* Add missing NO_EXPORT macro variant.Stephen Kelly2011-08-231-2/+11
|
* More consistency in the macro options.Stephen Kelly2011-08-231-6/+6
|
* Try to make the macros do almost nothing for Watcom.Stephen Kelly2011-08-231-2/+12
|
* Test for too-old-intel compilers.Stephen Kelly2011-08-231-1/+12
|
* Exclude PGI from exports and deprecated.Stephen Kelly2011-08-161-2/+2
|
* Exclude cygwin from the hidden visibility feature.Stephen Kelly2011-08-161-1/+1
|
* Don't enable deprecated on old GCCStephen Kelly2011-08-161-1/+1
| | | | | Hopefully a fix for http://www.cdash.org/CDash/testDetails.php?test=109688480&build=1432057
* Don't enable deprecated on HP.Stephen Kelly2011-08-161-1/+1
|
* Fixup forgotten part of aed84517c942a4c40f493fcf997cdf6a047349f8Stephen Kelly2011-08-141-3/+3
|
* Borland can't do deprecated.Stephen Kelly2011-08-131-4/+8
|
* Test for deprecated attribute before declspec.Stephen Kelly2011-08-131-4/+4
| | | | | The attribute seems more common, and some compilers seem to silently ignore the declspec.
* Add the COMPILER_HAS_DEPRECATED only if it has a declspec variantStephen Kelly2011-08-121-2/+1
| | | | _check_cxx_compiler_attribute does it in the alternative.
* Exclude the XL compiler from the hidden-visibility test.Stephen Kelly2011-08-121-1/+4
|
* Test for compiler features, instead of for specific platforms.Stephen Kelly2011-08-111-16/+22
|
* Split the deprecated available check from setting macro values.Stephen Kelly2011-08-111-4/+18
|
* Don't use hidden visibility on non-mingw windows either.Stephen Kelly2011-08-111-1/+1
|
* Make sure the hidden visibility variables never get set on MINGW.Stephen Kelly2011-08-111-2/+2
|
* Only set the deprecated attribute if hidden visibilty is enabled.Stephen Kelly2011-08-111-1/+3
| | | | | This is what is tested in the unit test. If it makes sense, another option can be added later.
* Add some debug output to narrow down deprecation test issuesStephen Kelly2011-08-101-0/+2
| | | | Particularly Borland and VS7.0 seem to still be failing.
* Another attempt at fixing Borland.Stephen Kelly2011-08-101-4/+2
| | | | | Apparently it still needs to be exported, but only declspec(deprecated) does not work.