Commit Graph

46 Commits

Author SHA1 Message Date
Brad King
9daa4a6c3f Remove CMAKE_SHARED_MODULE_RUNTIME_${lang}_FLAG
This platform configuration variable is unused.  Modules are built using
the value of CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG.
2009-12-02 15:17:32 -05:00
Brad King
3a666595c9 Convert CMake non-find modules to BSD License
This adds copyright/license notification blocks CMake's non-find
modules.  Most of the modules had no notices at all.  Some had notices
referring to the BSD license already.  This commit normalizes existing
notices and adds missing notices.
2009-09-28 11:46:51 -04:00
Alexander Neundorf
ea8c04a4f8 STYLE: rename the files from CMake<GENERATOR>.cmake to
CMakeFind<GENERATOR>.cmake, so it is more consistent e.g. with
CMakeFindXcode.cmake

Alex
2009-05-12 15:11:16 -04:00
Alexander Neundorf
352fb9ff66 ENH: move the code which queries gcc for the system include dirs from
CMakeSystemSpecificInformation.cmake into a separate file,
CMakeEclipseCDT4.cmake
-if CMAKE_EXTRA_GENERATOR is set, i.e. either CodeBlocks or KDevelop3 or
EclipseCDT4, load a matching cmake script file, which can do things specific
for this generator
- added such files for Eclipse, KDevelop and CodeBlocks, one thing they all
do is they try to find the respective IDE and store it in the
CMAKE_(KDEVELOP3|CODEBLOCKS|ECLIPSE)_EXECUTABLE variable.
This could be used by cmake-gui to open the project it just generated with
the gui (not sure this is possible with eclipse).

Alex
2009-05-10 06:00:27 -04:00
Alexander Neundorf
cbb7a509e8 ENH: when using the Eclipse project generator, run gcc so that it tells us
its system include directories. These are catched in CMakeSystemSpecificInformation.cmake
(only with the Eclipse generator) and then written by the Eclipse generator
in the Eclipse project file. This way Eclipse can find the standard headers
(#7585)
Not sure CMakeSystemSpecificInformation.cmake is the best place to do this.

Alex
2009-03-13 16:52:58 -04:00
Alexander Neundorf
097af4b86e STYLE: fix typo
Alex
2009-01-09 20:26:07 -05:00
Alexander Neundorf
512e0d40ef ENH: set UNIX, WIN32 and APPLE in cmMakefile.cxx as it was before, so it
works for scripts, then reset them in CMakeSystemSpecificInformation.cxx, so
the platform modules can set them again for the target system

Alex
2007-08-10 09:07:39 -04:00
Alexander Neundorf
176fe63d15 ENH: UNIX, CYGWIN, WIN32, APPLE, QNXNTO and BEOS are not longer set in
cmMakefile.cxx, but now in the platform files and are now valid for the
target platform, not the host platform.
New variables CMAKE_HOST_WIN32, CMAKE_HOST_UNIX, CMAKE_HOST_APPLE and
CMAKE_HOST_CYGWIN have been added in cmMakefile.cxx (...and have now to be
used in all cmake files which are executed before
CMakeSystemSpecificInformation.cmake is loaded). For compatibility the old
set is set to the new one in CMakeDetermineSystem.cmake and reset before the
system platform files are loaded, so custom language or compiler modules
which use these should still work.

Alex
2007-08-09 14:45:23 -04:00
Alexander Neundorf
930bb0cd37 ENH: remove support for presetting CMAKE_SYSTEM_INFO_FILE,
CMAKE_SYSTEM_AND_C_COMPILER_INFO_FILE, CMAKE_SYSTEM_AND_CXX_COMPILER_INFO_FILE,
CMAKE_SYSTEM_AND_C_COMPILER_AND_PROCESSOR_INFO_FILE and CMAKE_SYSTEM_AND_CXX_COMPILER_AND_PROCESSOR_INFO_FILE

Instead of presetting these variables to arbitrary filenames, users should
set up CMAKE_SYSTEM_NAME and the compilers correctly and also create a
Platform/ directory so these files will all follow the official cmake style,
which should make it easier to understand and debug project which have their
own platform/toolchain support files.

-remove support for a suffix to MS crosscompilers, since this is not (yet)
supported by cmake and might confuse users

Alex
2007-07-02 13:29:36 -04:00
Alexander Neundorf
61d3444f93 ENH: merge CMake-CrossCompileBasic to HEAD
-add a RESULT_VARIABLE to INCLUDE()
-add CMAKE_TOOLCHAIN_FILE for specifiying your (potentially crosscompiling) toolchain
-have TRY_RUN() complain if you try to use it in crosscompiling mode (which were compiled but cannot run on this system)
-use CMAKE_EXECUTABLE_SUFFIX in TRY_RUN(), probably TRY_RUN won't be able to
run the executables if they have a different suffix because they are
probably crosscompiled, but nevertheless it should be able to find them
-make several cmake variables presettable by the user: CMAKE_C/CXX_COMPILER, CMAKE_C/CXX_OUTPUT_EXTENSION, CMAKE_SYSTEM_NAME, CMAKE_SYSTEM_INFO_FILE
-support prefix for GNU toolchains (arm-elf-gcc, arm-elf-ar, arm-elf-strip etc.)
-move ranlib on OSX from the file command to a command in executed in cmake_install.cmake
-add support for stripping during install in cmake_install.cmake
-split out cl.cmake from Windows-cl.cmake, first (very incomplete) step to support MS crosscompiling tools
-remove stdio.h from the simple C program which checks if the compiler works, since this may not exist for some embedded platforms
-create a new CMakeFindBinUtils.cmake which collects the search fro ar, ranlib, strip, ld, link, install_name_tool and other tools like these
-add support for CMAKE_FIND_ROOT_PATH for all FIND_XXX commands, which is a
list of directories which will be prepended to all search directories, right
now as a cmake variable, turning it into a global cmake property may need
some more work
-remove cmTestTestHandler::TryExecutable(), it's unused
-split cmFileCommand::HandleInstall() into slightly smaller functions

Alex
2007-05-17 13:20:44 -04:00
Brad King
1d0502927c ENH: Adding support to link specifically to an archive or a shared library based on the file name specified. This fixes the problem of having -lfoo linking to libfoo.so even when it came from libfoo.a being specified. 2006-09-15 14:09:10 -04:00
Brad King
dbe7d39738 BUG: When copying the module variables from shared library variables use double quotes for the required definitions ...PREFIX and ...SUFFIX to make sure a value is set even if it is empty. 2006-03-16 17:07:36 -05:00
Bill Hoffman
b7fa820118 ENH: add documentation support for modules 2005-12-14 13:51:08 -05:00
Bill Hoffman
e63ea0a6d2 BUG: LINK_FLAGS are now all LINK_(LANG)_FLAGS 2004-09-24 14:37:58 -04:00
Bill Hoffman
692ba48c4e ENH: major changes to support addition of languages from cmake modules directory. 2004-09-22 14:42:05 -04:00
Bill Hoffman
66a08c10e5 ENH: more uniform approach to enable language, one step closer to being able to enable a language without modifing cmake source code 2004-08-26 14:55:55 -04:00
Andy Cedilnik
c8c5bb4e22 BUG: Unly set gcc flags for C compiler if CMAKE_COMPILER_IS_GNUCC is set 2004-08-18 09:28:41 -04:00
Bill Hoffman
a1b94f4c5c ENH: minor fortran fixes 2004-08-11 16:35:55 -04:00
Bill Hoffman
9655299f08 ENH: initial fortran support 2004-08-06 14:51:41 -04:00
Bill Hoffman
c8101e8e47 BUG: fix for bug 998, fix spelling errors 2004-07-26 16:59:55 -04:00
Bill Hoffman
0b7d154ebd ENH: add verbose make abilility to visual studio 7 2004-04-23 13:12:33 -04:00
Bill Hoffman
a413160fec ENH: add the unix makefile generator as an option from the windows GUI, this builds with mingw, cygwin, and combinations of make cl, bcc32 2003-08-21 16:22:23 -04:00
Bill Hoffman
44e3bbce96 ENH: add LDFLAGS as an initial value for all linker flags, good for -64 2003-05-23 09:35:04 -04:00
Bill Hoffman
bec6a7076a move cmake install out of advanced 2003-02-04 15:37:47 -05:00
Andy Cedilnik
c4bf103772 Remove extra quote 2003-01-30 14:34:16 -05:00
Bill Hoffman
99f115d1fd better docs 2002-12-19 12:51:50 -05:00
Bill Hoffman
bd74882d3e ENH: use CMAKE_ROOT and not PROJECT_ for try compile stuff, this allows projects within projects to have different languages 2002-12-17 14:54:25 -05:00
Bill Hoffman
96189f79d5 ENH: unify EnableLanguage across all generators 2002-12-05 13:44:11 -05:00
Bill Hoffman
e2d1104881 determine CMAKE_MAKE_PROGRAM in EnableLanguage 2002-12-03 16:19:16 -05:00
Sebastien Barre
209d00ccfc FUX: those vars need to be ADVANCED 2002-11-21 11:46:13 -05:00
Bill Hoffman
70eaf19326 ENH: fix for module run time flag 2002-11-21 08:12:19 -05:00
Bill Hoffman
5a75e03037 allow flags to be in the CC and CXX environment variables 2002-11-19 18:17:17 -05:00
Bill Hoffman
0cb9343e83 BUG: fix CFLAGS 2002-11-19 12:20:21 -05:00
Andy Cedilnik
ebb6477dbb If system detection fails, make copy of CMakeCache 2002-11-18 10:51:21 -05:00
Bill Hoffman
a2ec93371b ENH: add back install prefix 2002-11-15 10:07:38 -05:00
Bill Hoffman
c652215ca8 ENH: add CFLAGS and CXXFLAGS 2002-11-15 09:16:34 -05:00
Andy Cedilnik
115ea25dab BUG: fix flags for c compiler on windows 2002-11-14 11:33:25 -05:00
Bill Hoffman
98ef89bf77 Set CMAKE_BUILD_TOOL 2002-11-12 09:12:13 -05:00
Bill Hoffman
36db45082e ENH: fix up several problems with new stuff 2002-11-11 18:10:30 -05:00
Bill Hoffman
d1051bb575 clean up flags with _init flags 2002-11-11 12:31:46 -05:00
Brad King
3a6d52f4c5 ENH: Moved caching of C*_FLAGS* settings down to CMakeSystemSpecificInformation.cmake. The platform files can set the defaults on the first run, and then the settings are cached at the end. 2002-11-08 18:06:53 -05:00
Bill Hoffman
f5d95fb078 Complete rework of makefile generators expect trouble 2002-11-08 15:46:08 -05:00
Bill Hoffman
319c3adf2a *** empty log message *** 2002-10-25 14:08:17 -04:00
Bill Hoffman
fa782867b3 closer to removing autoconf 2002-10-23 16:53:53 -04:00
Bill Hoffman
0692323fe0 *** empty log message *** 2002-10-22 15:04:52 -04:00
Bill Hoffman
b1114a344f new cmake based configuration 2002-10-22 10:34:07 -04:00