Commit Graph

536 Commits

Author SHA1 Message Date
Andy Cedilnik 4e66ef8fe1 New design of CheckSymbolExists pretty much replaces all other ones.
For example:

CHECK_HEADER_EXISTS("type.h" HAVE_TYPE_H)
is:
CHECK_SYMBOL_EXISTS(main "type.h" HAVE_TYPE_H)

CHECK_LIBRARY_EXISTS("nsl"    gethostname  HAVE_LIBNSL)
would be
SET(CMAKE_REQUIRED_LIBRARIES "nsl")
CHECK_SYMBOL_EXISTS(gethostname "netdb.h" HAVE_LIBNSL)

...
2003-03-28 13:42:34 -05:00
Bill Hoffman f4ebc1f15f Fix gnu c and Sun CC mix 2003-03-27 13:03:30 -05:00
Andy Cedilnik 4a2d04f42a Prevent CMake from putting ; in the file 2003-03-16 20:33:51 -05:00
Andy Cedilnik e727d34b48 More variables advanced 2003-03-16 20:25:14 -05:00
Andy Cedilnik b23b592ca6 Add gthread library 2003-03-16 20:23:55 -05:00
Bill Hoffman 858056bbc3 BUG: bad if statement order 2003-03-14 15:44:20 -05:00
Bill Hoffman 0f89043568 force c++ for c++ files 2003-03-14 12:00:50 -05:00
Brad King 284071e3fa BUG: Don't use -nostdlib option to link shared libraries. Just use gcc -shared, even for C++ libraries. 2003-03-13 15:46:19 -05:00
Bill Hoffman 229355764b BUG: fix test not to run every time 2003-03-11 17:35:23 -05:00
Andy Cedilnik 2c676d0587 On borland and cygwin remove .EXE 2003-03-06 15:32:40 -05:00
Brad King 98d10a42d3 BUG: Should test HAVE_<VARIABLE> before repeating test, not just whether <VARIABLE> is set. 2003-03-06 10:32:43 -05:00
Andy Cedilnik 66dfe6f83a Add Update and configure steps where missing 2003-03-03 13:58:14 -05:00
Andy Cedilnik ac4361b8d9 Start cleaning global namespace 2003-03-03 09:32:45 -05:00
Andy Cedilnik e71b03cbf0 Fix update date and cleanup 2003-02-28 12:42:50 -05:00
Andy Cedilnik d2faa22732 On windows but not on borland, look at cmake_build_tool instead of compiler to determine build name. Otherwise they will all be cl 2003-02-27 14:48:33 -05:00
Andy Cedilnik e68b4b9bc7 Use more condense buildname. If this works fine we can make cmBuildName command deprecated 2003-02-27 11:54:03 -05:00
Andy Cedilnik 99fd8062c4 Use simple defaults if DartConfig does not exist. This way you can use dart to build any project 2003-02-20 17:38:16 -05:00
Bill Hoffman 02be31b860 BUG: look for msdev in the right place 2003-02-20 10:44:58 -05:00
Bill Hoffman e427844722 remove commented code 2003-02-20 08:41:33 -05:00
Brad King d78a4bab8c BUG: Removed use of cmake 1.4 compatability variable. 2003-02-19 17:10:08 -05:00
Andy Cedilnik 9ca8035fc6 Fix return value problem 2003-02-17 10:30:13 -05:00
Bill Hoffman d9a74e1b1e ENH: move full path compiler to internal and not just advanced 2003-02-14 10:40:00 -05:00
Bill Hoffman ae5a80c795 spelling errors 2003-02-14 09:54:15 -05:00
Andy Cedilnik fd89ebbbaf Ok, now it finds JNI on Mac OSX 10.2 2003-02-11 14:49:11 -05:00
Andy Cedilnik 5a31a94f84 Fix typo 2003-02-11 13:56:35 -05:00
Andy Cedilnik a6c2c80757 Add missing location 2003-02-11 13:53:30 -05:00
Andy Cedilnik 8e105e0a9f Improve searching for java files on OSX 2003-02-11 13:37:19 -05:00
Brad King d2ef193a31 Moving this very specific module to VTK. 2003-02-11 09:50:22 -05:00
Bill Hoffman c07e94867f clean up check for for scope test 2003-02-10 21:56:32 -05:00
Brad King 1628b593d3 BUG: Copying _LIB_DEPENDS variables requires double-quoted argument. 2003-02-07 16:29:13 -05:00
Bill Hoffman e0d166ec72 fix default release flags for hp 2003-02-05 14:55:51 -05:00
Bill Hoffman bec6a7076a move cmake install out of advanced 2003-02-04 15:37:47 -05:00
Berk Geveci c8daa038c2 Created modules for Mesa headers and libraries. 2003-02-04 14:37:33 -05:00
Bill Hoffman 15fc30ae40 ENH: add checking for NOTFOUND 2003-01-31 15:01:37 -05:00
Bill Hoffman 81aee11c21 ENH: add checking for NOTFOUND 2003-01-31 14:39:49 -05:00
Andy Cedilnik c4bf103772 Remove extra quote 2003-01-30 14:34:16 -05:00
Andy Cedilnik d530fbe731 Attempt to fix build problem on some platforms 2003-01-29 09:06:46 -05:00
Bill Hoffman e44be57f6d ENH: change FIND_FILE to FIND_PROGRAM 2003-01-28 15:44:45 -05:00
Andy Cedilnik a3c282ebbd Make things work on unix and add DVIPDF 2003-01-28 08:53:27 -05:00
Brad King 415eca1fbb BUG: Added missing link flag to export symbols from an executable. 2003-01-24 13:53:21 -05:00
Sebastien Barre 9111244018 no message 2003-01-23 10:42:06 -05:00
Sebastien Barre 4220725f64 FIX:
- rename some entries (COMPILE -> COMPILER, and the converters -> _CONVERTER)
- make sure that Window system are given a chance to find Latex and the converters if MikTex and GhostScript are installed (but not in the PATH)
2003-01-23 10:37:46 -05:00
Sebastien Barre 37f7074269 FIX: the current version of Perl is 5.8 2003-01-23 10:36:35 -05:00
Ken Martin b05c5e89ed minor change to default compile flags 2003-01-22 14:59:46 -05:00
Ken Martin fde48d14fd merge from branch 2003-01-22 14:49:45 -05:00
Bill Hoffman ac888a15c8 moved to c++ command 2003-01-22 14:13:40 -05:00
Bill Hoffman 950399ec9d ENH: only run test for working c and cxx compiler once 2003-01-22 12:29:37 -05:00
Ken Martin 56acc4bf2e merge from branch 2003-01-22 11:21:28 -05:00
Ken Martin afa71d1e53 removed since no longer used 2003-01-22 11:16:35 -05:00
Ken Martin 7f336be820 merge branch change into main tree 2003-01-22 11:11:41 -05:00
Brad King 0b324df1bb ENH: Updated documentation. 2003-01-21 15:03:56 -05:00
Andy Cedilnik 6c9d1983d7 This list can be really long. Only display the variable name 2003-01-21 14:01:41 -05:00
Bill Hoffman 2f4ea98a4c add a fatal error, and make sure c and c++ compilers work before using them 2003-01-21 12:50:48 -05:00
Bill Hoffman 110bc04bd0 use export all symbols on cygwin 2003-01-21 12:41:22 -05:00
Sebastien Barre 5e366c361d IMPORTANT FIX: be extra-careful here on WIN32, we do NOT want CMake to look in the system's PATH env var to search for ImageMagick's convert.exe, otherwise it is going to pick Microsoft Window's own convert.exe, which is used to convert FAT partitions to NTFS format ! Depending on the options passed to convert.exe, there is a good chance you would kiss your hard-disk good-bye. 2003-01-21 10:59:48 -05:00
Will Schroeder ece369eaf3 BUG: fix missed CMAKE to X11 variable name 2003-01-20 14:39:03 -05:00
Brad King f18e47c40a BUG: Fix for application of expand-list-variables. 2003-01-17 18:14:40 -05:00
Brad King 94a8d00199 ENH: Adding FIND_AND_IMPORT_CMAKE_PROJECT macro. 2003-01-17 17:19:23 -05:00
Luis Ibanez b20d232855 FIX: Quotes added around the list of libs to be added in Apple. 2003-01-16 13:31:35 -05:00
Luis Ibanez e3f681937f ENH: Platform dependent libraries added for APPLE. 2003-01-16 13:24:49 -05:00
Bill Hoffman f519f14972 ENH: fix for borland and cygwin 2003-01-16 12:38:53 -05:00
Luis Ibanez 81c9994343 ENH: Libraries are not marked as ADVANCED now. 2003-01-15 18:28:14 -05:00
Bill Hoffman 724c74122f BUG: fix for OSX with x11 gl stuff 2003-01-15 15:02:21 -05:00
Bill Hoffman c01253a58f BUG: fix flags for borland link shared and module 2003-01-15 13:22:50 -05:00
Bill Hoffman 4cd69a3a2f quote the variable 2003-01-15 13:12:56 -05:00
Bill Hoffman 7f91fc35a2 look for cygtcl83 2003-01-15 11:59:50 -05:00
Ken Martin 6c61762b0f merge from branch 2003-01-13 10:11:23 -05:00
Ken Martin c6323d154b fixed typo 2003-01-13 09:24:37 -05:00
Andy Cedilnik d87595ede3 Add macro for checking if symbol exists 2003-01-12 22:28:32 -05:00
Ken Martin 382d0d4474 better fix for win32 2003-01-09 15:54:29 -05:00
Ken Martin 75856e1762 update to not put PROJECT_SOURCE_DIR as OPENGL_PATH 2003-01-09 14:00:44 -05:00
Ken Martin dfa4cbd19e minor fix to backw compat 2003-01-09 11:34:45 -05:00
Ken Martin 6593700f09 added big endian stuff 2003-01-09 08:50:00 -05:00
Bill Hoffman 4d6dba4c37 ENH: only force the use of ansi flags in backwards mode 2003-01-08 12:12:15 -05:00
Andy Cedilnik 69762f4d99 Fix FindX11 to match convention 2003-01-08 11:45:48 -05:00
Brad King 4ad8af53ab ENH: Added shared library settings. 2003-01-06 09:32:27 -05:00
Bill Hoffman 3da465e24f ENH: look for AIX compiler as well 2003-01-06 09:04:18 -05:00
Bill Hoffman 578883ce64 add shared path for OSF 2003-01-06 08:39:21 -05:00
Bill Hoffman b36d6b89f1 BUG: revert back to rpath, 2003-01-05 11:24:36 -05:00
Andy Cedilnik cf81ec9a39 Remove debug 2003-01-03 20:26:20 -05:00
Andy Cedilnik 668b3f3cea Fix problems with required flags 2003-01-03 20:03:35 -05:00
Andy Cedilnik e720b84d6b Add required flags 2003-01-03 19:23:19 -05:00
Brad King 624a222df3 ENH: Find python framework on Mac OSX. 2003-01-03 17:36:34 -05:00
Bill Hoffman ad6fb55653 try to fix rpath on OSF 2003-01-03 16:23:47 -05:00
Bill Hoffman 39e43360ea BUG: bad rpath flag for suns 2003-01-03 08:12:58 -05:00
Brad King 0a14f69755 BUG: Don't add -I/usr/include as an X_CFLAGS setting. 2003-01-02 09:57:59 -05:00
Brad King 204308132f BUG: Fixed ordering of X11 search. 2003-01-02 09:57:42 -05:00
Bill Hoffman bdaf74b561 clean up some c/cxx issues 2003-01-02 08:52:39 -05:00
Bill Hoffman 7773f9ed22 clean up some c/cxx issues 2003-01-02 08:51:23 -05:00
Andy Cedilnik de00883c41 Add macro for checking if a swequence of includes can be includes 2003-01-01 18:00:49 -05:00
Andy Cedilnik c8e546a353 To prevent cmake from breaking up arguments, put quotes around them 2003-01-01 16:25:26 -05:00
Andy Cedilnik 5e48ccac35 Add a way to add custom libraries to the mix. Also add status reporting 2003-01-01 15:02:47 -05:00
Andy Cedilnik 6d5c437045 Add a way to add custom libraries to the mix 2003-01-01 15:02:20 -05:00
Brad King 61cd9298cd ENH: Added <LINK_FLAGS> to link rules. 2002-12-31 13:08:44 -05:00
Bill Hoffman bf6730b03a ENH: fix shared libraries on AIX 2002-12-30 11:48:33 -05:00
Brad King ea1467d056 ENH: Renamed Modules/CheckSizeOf to Modules/CheckTypeSize for consistency with the macro name that is defined by the module. 2002-12-30 11:02:31 -05:00
Yves Starreveld 1bf59ded66 ENH: find python framework and include files on OSX 2002-12-27 11:14:52 -05:00
Andy Cedilnik fc52954023 If there is no java compiler report error on ADD_JAVA_LIBRARY 2002-12-26 19:59:21 -05:00
Andy Cedilnik c073a094ed Add missing closing bracket 2002-12-26 13:58:04 -05:00
Bill Hoffman e74377dcd8 ENH: fixes for borland with spaces in the path 2002-12-22 15:19:48 -05:00
Sebastien Barre 03bfa86394 ENH: it's time to create a real Microsoft HTML Help Workshop CMake module 2002-12-22 10:09:51 -05:00
Brad King 4e6ad941e9 ENH: Visual Studio 6 and 7 generators now set CMAKE_CONFIGURATION_TYPES to be a semicolon-separated list of configurations that will be built. 2002-12-20 12:59:18 -05:00
Sebastien Barre 309748ff79 FIX: make CMAKE_X_LIBS and CMAKE_X_CFLAGS advanced 2002-12-20 11:56:08 -05:00
Brad King a086d08311 ENH: Use the Mac -framework for Tk if it is available. 2002-12-20 09:43:28 -05:00
Brad King 1d0569e79d ENH: Use the Mac -framework for Tcl if it is available. 2002-12-20 09:42:19 -05:00
Bill Hoffman 99f115d1fd better docs 2002-12-19 12:51:50 -05:00
Bill Hoffman b489540f83 ENH: make linker flags use init values so users can set them from the cache 2002-12-19 12:51:31 -05:00
Brad King f958a7dc85 ENH: Adding build type flags for C. 2002-12-18 10:52:38 -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
Brad King f433028b78 ENH: FindX11.cmake module now almost fully duplicates old configure functionality. 2002-12-17 11:55:54 -05:00
Brad King 7e824e83a9 ENH: Don't repeat check even if answer was no. 2002-12-13 14:58:55 -05:00
Brad King fe26cf51f5 ERR: Fixed syntax errors for picky preprocessors. 2002-12-12 10:25:43 -05:00
Brad King 38b2667de2 ERR: Need double-quotes around expression to be mached in IF command. 2002-12-12 10:25:18 -05:00
Andy Cedilnik 1c6203b406 Add java support 2002-12-11 10:34:35 -05:00
Andy Cedilnik c720d473b3 Better search for python 2002-12-09 16:22:44 -05:00
Brad King f9eb32fc6e ENH: Using only filename without path or extension for comparing build tools. 2002-12-09 14:33:48 -05:00
Bill Hoffman b472d792be use win32 threads for win32 2002-12-09 08:27:52 -05:00
Bill Hoffman b6cb67eaa9 BUG: fix C compiler init 2002-12-06 10:16:21 -05:00
Bill Hoffman b3ca217a23 clean up compiler picking code 2002-12-06 10:09:41 -05:00
Bill Hoffman 35fb6f22ba fix for generator picked compilers 2002-12-06 10:02:19 -05:00
Bill Hoffman 96189f79d5 ENH: unify EnableLanguage across all generators 2002-12-05 13:44:11 -05:00
Brad King 14771cf5f6 ENH: Added support for finding/using VTK 4.0 without using its UseVTK.cmake file that does a LOAD_CACHE. 2002-12-05 10:47:18 -05:00
Brad King f3eca1ef6b BUG: Fix for string comparison when one string is empty. 2002-12-05 10:34:50 -05:00
Brad King ee72d5740b ENH: Adding CMAKE_EXPORT_BUILD_SETTINGS and CMAKE_IMPORT_BUILD_SETTINGS macro. 2002-12-05 09:46:30 -05:00
Brad King 9992fe5103 BUG: Removed stray debugging message. 2002-12-04 16:59:05 -05:00
Bill Hoffman 1e8914ada8 BUG: fix get make command problems. 2002-12-04 10:57:22 -05:00
Bill Hoffman e2d1104881 determine CMAKE_MAKE_PROGRAM in EnableLanguage 2002-12-03 16:19:16 -05:00
Luis Ibanez c40401f05b Module to find tools from the ImageMagick package.
These tools are useful for converting image formats.
2002-12-03 14:15:51 -05:00
Luis Ibanez ec1b07015e ENH: description of variables now follows other style in other .cmake files. 2002-12-03 13:46:45 -05:00
Luis Ibanez 93d38e24cc ENH: Description of variables now specifies that the full path is required. 2002-12-03 13:44:50 -05:00
Bill Hoffman 3873bd6257 correctly place both LINK_FLAGS and CXX_LINK_FLAGS and C_LINK_FLAGS into all the rules 2002-12-03 10:47:07 -05:00
Bill Hoffman 30a3d18fe8 use LINK_FLAGS not C and CXX LINK_FLAGS 2002-12-03 09:59:24 -05:00
Luis Ibanez 01efac63e2 ENH: FLTK 1.1.1 under Windows links now with the comctl32 library. 2002-11-28 23:45:27 -05:00
Andy Cedilnik 5e84aca2f1 Change priorities 2002-11-25 17:57:30 -05:00
Bill Hoffman 69806d705a change flags for borland 2002-11-22 16:18:31 -05:00
Bill Hoffman 77888e67f8 remove debug stuff 2002-11-21 15:36:33 -05:00
Bill Hoffman 1e3ddfeecf try to fix check for ansi stream 2002-11-21 14:45:21 -05:00
Bill Hoffman 02d423b250 fix order 2002-11-21 14:32:20 -05:00
Bill Hoffman ddc3c70641 fix order 2002-11-21 14:24:58 -05:00
Bill Hoffman a7098d1433 move ansi cxx flags stuff out of try compile and into cmake files 2002-11-21 14:11:53 -05:00
Bill Hoffman c54a86edd6 have to cache ansi_cxxflags 2002-11-21 13:28:03 -05:00
Bill Hoffman 369d5f631c spelling error 2002-11-21 13:00:51 -05:00
Bill Hoffman 9a6c95fcea add checks for ansi flags and not hard code them 2002-11-21 12:52:54 -05:00
Sebastien Barre 209d00ccfc FUX: those vars need to be ADVANCED 2002-11-21 11:46:13 -05:00
Brad King 9a98c16803 ENH: Added CHECK_VARIABLE_EXISTS macro. 2002-11-21 10:11:46 -05:00
Bill Hoffman e9687d931a fix for create shared library 2002-11-21 08:45:45 -05:00
Bill Hoffman 70eaf19326 ENH: fix for module run time flag 2002-11-21 08:12:19 -05:00
Brad King c2addf1630 ENH: Added support to find VTK 4.0. 2002-11-20 16:23:20 -05:00
Bill Hoffman ee42cf3c06 BUG: use CMAKE_COMPILER_IS_GNUCC not CMAKE_COMPILER_IS_GNUGCC 2002-11-20 15:23:14 -05:00
Luis Ibanez 9686a9034c ENH: Now also locates the "makeindex" program. 2002-11-20 14:40:51 -05:00