Brad King
2cc46c12f8
ENH: Add patch step for add_external_project
...
The patch step runs parallel to the update step since it does not make
sense to have both. Configuration of the step requires specification of
a PATCH_COMMAND argument to add_external_project.
2009-03-18 11:01:02 -04:00
Brad King
6ae0ff626a
ENH: Improve add_external_project interface
...
This rewrites the keyword/argument parsing and handling in the
AddExternalProject module to use arguments more literally:
- The strict keyword-value pairing is gone in favor of keywords with
arbitrary non-keyword values. This avoids requiring users to escape
spaces and quotes in command lines.
- Customized step command lines are now specified with a single
keyword <step>_COMMAND instead of putting the arguments in a
separate entry (previously called <step>_ARGS).
- Build step custom commands now use VERBATIM mode so that arguments
are correctly escaped on the command line during builds.
2009-03-18 11:00:30 -04:00
Philip Lowman
10da3f74ea
BUG: Eliminates detection of Boost system library prior to 1.35 (see issue #8734 )
2009-03-16 22:28:35 -04:00
Brad King
493f88ce55
ENH: Allow projects to disable per-rule echo lines
...
This creates global property RULE_MESSAGES which can be set to disbale
per-rule progress and action reporting. On Windows, these reports may
cause a noticable delay due to the cost of starting extra processes.
This feature will allow scripted builds to avoid the cost since they do
not need detailed information anyway. This replaces the RULE_PROGRESS
property created earlier as it is more complete. See issue #8726 .
2009-03-16 16:55:58 -04:00
Brad King
2f651c2e59
ENH: Allow projects to disable per-rule progress
...
This creates global property RULE_PROGRESS which can be set to disbale
per-rule progress reporting. On Windows, progress reports may cause a
noticable delay due to the cost of starting an extra process. This
feature will allow scripted builds to avoid the cost since they do not
need detailed progress anyway. See issue #8726 .
2009-03-16 16:22:19 -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
Philip Lowman
cd3984eea3
STYLE: Moved functions/macros to top of file so main is more readable.
2009-03-12 21:06:08 -04:00
Alexander Neundorf
8d5b090188
STYLE: fix documentation: the second short description discarded the first
...
one, but the first one was the correct one (i.e. the one which mentioned
that CheckC[XX]SourceRuns.cmake also tries to run the executable)
Alex
2009-03-11 18:13:53 -04:00
David Cole
6d242ca2dc
STYLE: Use $ style variable dereference instead of @ style.
2009-03-05 10:08:03 -05:00
Bill Hoffman
f9dd6a38c5
ENH: add file back bug use cmake image
2009-03-04 12:30:23 -05:00
Brad King
ba5cbf0fb1
ENH: Better recursive make in AddExternalProject
...
This teaches AddExternalProject to run "$(MAKE)" for build and install
steps of CMake-based external projects when using a Makefile generator.
It allows the external project to participate in a parallel make invoked
on the superproject.
2009-03-04 11:45:42 -05:00
Brad King
726114077d
ENH: Allow empty arguments in external project API
...
This uses the get_property command to simplify property lookup in the
AddExternalProject module. It distinguishes for build and install
argument properties the cases of unset and set to empty.
2009-03-04 09:21:16 -05:00
Bill Hoffman
5308afa3f7
ENH: remove unused file
2009-03-03 07:56:44 -05:00
Philip Lowman
feb21f1dc0
STYLE: Fix documentation bug regarding Boost_<COMPONENT>_LIBRARY (COMPONENT
...
should be uppercase).
2009-03-02 21:09:36 -05:00
Philip Lowman
f0edae98ea
ENH: Detect perl & python scripts based on CXXTEST_INCLUDE_DIR (patch from
...
Tyler Roscoe on mailing list).
2009-03-02 20:29:38 -05:00
Brad King
19d9c824a8
BUG: Fix ASM source file extension default list
...
This replaces @ASM_DIALECT@ syntax with ${ASM_DIALECT} syntax so it will
be replaced correctly. Patch from Derek Bruening. See issue #8639 .
2009-02-27 13:08:05 -05:00
Miguel A. Figueroa-Villanueva
3dce55fde0
BUG: Fix copy/paste error in previous commit that references wrong variable
...
(wxWidgets_INCLUDE_DIRS instead of wxWidgets_DEFINITIONS).
2009-02-25 17:17:34 -05:00
Alexander Neundorf
bc8f2f50a8
ENH: add patch from Debian, which adds support lrelease-qt4 and lupdate-qt4
...
http://patch-tracking.debian.net/patch/series/view/cmake/2.6.3-1/FindQt4_qt4_lupdate_lrelease.diff
Alex
2009-02-25 16:29:29 -05:00
Brad King
cb788e8f6d
ENH: Re-enable system include dir suppression
...
This creates variable CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES to
specify implicit include directories on a per-language basis. This
replaces the previous platform-wide variable. It is necessary to
avoid explicit specification of -I/usr/include on some compilers
(such as HP aCC) because:
1.) It may break ordering among system include directories defined
internally by the compiler, thus getting wrong system headers.
2.) It tells the compiler to treat the system include directory
as a user include directory, enabling warnings in the headers.
See issue #8598 .
2009-02-25 11:44:46 -05:00
Miguel A. Figueroa-Villanueva
cf55e01ada
BUG: Using PROPERTY COMPILE_DEFINITIONS_DEBUG to support Debug only preprocessor options (e.g., _DEBUG __WXDEBUG__).
2009-02-24 16:49:15 -05:00
Brad King
39f8b91125
BUG: Remove implicit include dir suppression
...
We used to suppress generation of -I/usr/include (and on OSX also
-I/usr/local/include). This behavior seems to cause more trouble than
it's worth, so I'm removing it until someone encounters the original
problem it fixed. See issue #8598 .
2009-02-24 15:37:09 -05:00
Philip Lowman
a58e183636
BUG: Fix issue #8576 FindBoost regression finding static libs, impacts MinGW and Intel/Windows compilers.
2009-02-24 00:49:01 -05:00
Clinton Stimpson
08ca8f5053
ENH: Support COMPONENTS argument to find_package().
...
See bug #8542 .
2009-02-19 16:04:57 -05:00
Clinton Stimpson
abdcf91422
ENH: Support version argument in find_package().
...
See bug #8542 .
2009-02-19 15:51:43 -05:00
David Cole
553ddde8d1
BUG: Allow third component of Mac OSX sw_vers output to be empty. Mac OSX 10.5 was recently reinstalled on dashmacmini3 and pointed out the fact that this expression is faulty when the reported version is simply 10.5 rather than 10.5.x... for example. This fixes it.
2009-02-17 16:59:58 -05:00
Brad King
0d34d44917
STYLE: Note find_package COMPONENTS in modules doc
...
This mentions the COMPONENTS option of find_package in the module author
documentation file "Modules/readme.txt". See issue #8539 .
2009-02-16 10:33:09 -05:00
Clinton Stimpson
2b4a472e81
ENH: Allowing finding a relocated Qt installation which contains a qt.conf to override the hardcoded paths in qmake.
...
Fixes #8532 .
2009-02-13 18:52:02 -05:00
Brad King
0e067ad3d1
ENH: Create include(CTest) launcher interface
...
This defines a new CTest configuration variable CTEST_USE_LAUNCHERS.
When set to true it puts 'ctest --launch' in RULE_LAUNCH_* properties
and enables the CTest configuration option 'UseLaunchers'. Currently
this works only for Makefile generators.
2009-02-11 15:18:13 -05:00
Clinton Stimpson
54e258414d
ENH: Change FILEPATH to STRING for a list of libraries.
2009-02-10 18:13:24 -05:00
Bill Hoffman
016d17f0cb
ENH: change include command
2009-02-10 12:56:32 -05:00
Brad King
b604b98c56
ENH: Define RULE_LAUNCH_* properties
...
This defines global, directory, and target properties
RULE_LAUNCH_COMPILE, RULE_LAUNCH_LINK, and RULE_LAUNCH_CUSTOM. Their
values specify 'launcher' command lines which are prefixed to compile,
link, and custom build rules by Makefile generators.
2009-02-10 08:51:15 -05:00
Philip Lowman
39888c4ae1
STYLE: Clarified example to illustrate need to call target_link_libraries() in response to Issue #8485 . Changed CMake commands to lowercase. Added licensing info to copyright
2009-02-09 23:05:38 -05:00
Philip Lowman
17656ace03
BUG: Resolves Issue #8393 , Remove workarounds in FindBoost once UNC-Path bug
...
is fixed
2009-02-09 22:39:31 -05:00
Philip Lowman
cae2da8d16
STYLE: Improved examples, spelling & grammar in documentation
2009-02-09 22:34:13 -05:00
Clinton Stimpson
dda19cd36f
ENH: Support .hpp with automoc.
2009-02-09 16:42:19 -05:00
Christopher Harvey
e18a33e491
ENH: Made the documentation for FindDevIL.cmake cleaner. Changed the XXX_LIBRARYs to XXX_LIBRARIES.
2009-02-09 16:25:48 -05:00
Clinton Stimpson
f26c235aba
BUG: When detecting if qmake executable is changed, don't error if path
...
contains regex chars.
2009-02-07 12:23:02 -05:00
Clinton Stimpson
56ade2af43
ENH: Add support for building with Qt's ActiveX support on Windows.
2009-02-05 23:01:38 -05:00
David Cole
3ad6aa6a98
BUG: Add debug message calls to figure out ExternalProject test failure on AIX dashboard.
2009-02-04 18:24:20 -05:00
Bill Hoffman
5b2b40d34b
BUG: fix potential issue with empty strings
2009-02-03 08:38:34 -05:00
Bill Hoffman
377bf9dbd1
BUG: include should not have .cmake
2009-02-02 16:30:04 -05:00
Philip Lowman
de70cc194b
BUG: Fixes configure error if you don't specify a version with find_package()
2009-01-31 13:57:48 -05:00
Philip Lowman
1897b563d9
BUG: Fix library detection for GDAL on most Linux distributions (Issue #7445 )
2009-01-31 01:50:40 -05:00
Philip Lowman
78bbf5a0de
ENH: Added FindOpenSceneGraph.cmake which is intended to wrap any of the existing Findosg* modules (or even user specified modules in CMAKE_MODULE_PATH) and aggregate the include dirs & libraries while providing a COMPONENT frontend and version checking (Fixes Issue #6973 ). Also added a note to Findosg.cmake to refer new users to the module.
2009-01-30 20:09:16 -05:00
Philip Lowman
4b45824294
ENH: Added OSG_ROOT as supported env var (it's in the wild already). Cleaned
...
up FindOpenThreads to support PATH_SUFFIXES. Removed superfluous WIN32 registry
checks which should have been $ENV{} checks.
2009-01-30 16:55:57 -05:00
Philip Lowman
1569f5d0e4
BUG: Fix other modules not respecting QUIET and REQUIRED
2009-01-30 15:13:07 -05:00
Philip Lowman
901b4b6c3f
BUG: The QUIET and REQUIRED find attributes on each Findosg* module were not
...
being respected.
2009-01-30 14:33:08 -05:00
Philip Lowman
6ccd60dee3
ENH: Added a mark_as_advanced() wrapper function.
2009-01-30 14:29:26 -05:00
Philip Lowman
25325c8f4d
BUG: Fixes detection of lua libraries installed from FreeBSD ports (Issue #8421 )
2009-01-30 03:02:49 -05:00
David Cole
75fb6798ab
BUG: Remove unnecessary double quotes from SET statements. Hopefully resolves the strange and difficult to diagnose (or reproduce) test failures on the dashmacmini2 Continuous dashboard.
2009-01-29 14:57:38 -05:00
Brad King
7ca59f1724
BUG: Fix OS X dylib version flags for more linkers
...
Some OS X linkers want a 'dylib_' prefix on the -compatiblity_version
and -current_version flags while others do not. This passes the flags
through gcc instead since it never wants the prefix and translates the
flags for the linker correctly.
2009-01-29 13:41:58 -05:00
Clinton Stimpson
f9710e22ec
ENH: Also find .moc files if there are spaces between # and include.
...
Fixes #8433 .
2009-01-29 13:26:01 -05:00
Bill Hoffman
9b0fe5738b
BUG: fix for # 8413 add more haiku searching
2009-01-29 11:42:07 -05:00
Philip Lowman
6f000b55c9
STYLE: Reworded some of the OS-X code comments
2009-01-28 22:56:38 -05:00
Clinton Stimpson
26238d7d9a
ENH: Better way to add framework includes.
2009-01-28 15:04:52 -05:00
Bill Hoffman
d38c0de82f
ENH: clean up status and change order for more common compilers first
2009-01-28 12:55:06 -05:00
Bill Hoffman
0dd0e2d6e6
ENH: add openmp support
2009-01-28 12:45:03 -05:00
David Cole
2cd839142d
BUG: Fix careless typo that only caused test failures on clean builds...
2009-01-28 06:10:12 -05:00
David Cole
9e3705b5b8
BUG: Try to fix the universal binary continuous dashboard on dashmacmini2. I am deducing that the value of CMAKE_OSX_ARCHITECTURES_DEFAULT is responsible for the failure, although I cannot reproduce it on other builds or even by running the test via ctest interactively *on* the continuous dashboard's build...
2009-01-27 15:51:43 -05:00
David Cole
2853326e7a
BUG: Only set CMAKE_OSX_DEPLOYMENT_TARGET on Mac OSX 10.4 or later. The gcc that runs on 10.3 and earlier does not understand the compiler flag it maps to...
2009-01-27 11:50:41 -05:00
David Cole
1dee719cdc
BUG: Fix issue #6195 . Add CMAKE_OSX_DEPLOYMENT_TARGET cache variable to specify the target deployment runtime OS version of the built executables on Mac OSX. Thanks to Mike Jackson for the patch.
2009-01-27 10:30:55 -05:00
Clinton Stimpson
aad46d7989
BUG: Fixed recent regression when finding some includes.
2009-01-26 10:12:37 -05:00
Clinton Stimpson
f1916357f2
ENH: Should have a -F for framework includes on Mac. Fixes ParaView build with Qt 4.5 on Mac.
2009-01-23 17:37:44 -05:00
Clinton Stimpson
b2d52b07ad
ENH: Add convenience for identifying Cocoa based Qt.
2009-01-23 16:52:15 -05:00
David Cole
c58f2a5830
ENH: Turn off CPACK_BINARY_TBZ2 and CPACK_BINARY_ZIP by default. Strictly speaking, this changes behavior from cpack 2.6, but now that cpack returns a non-zero exit code when it encounters an error, and it is an error to try to use a generator that is not available... It makes sense to turn these off by default since not everybody has these generators installed. It is easy for a project to turn these options back on if they need to: simply set(CPACK_BINARY_TBZ2 ON) or set(CPACK_BINARY_ZIP ON) before include(CPack) in your CMakeLists.txt...
2009-01-23 13:36:22 -05:00
Philip Lowman
138c445781
ENH: Better support for "fltk-config" binary, added options so the user
...
doesn't have to have everything in order for FLTK_FOUND to be true. #7809
2009-01-23 00:30:22 -05:00
David Cole
3a4f76949a
BUG: Fix issue #8402 . Add a drag and drop bundle generator to the Mac build of CPack. Add a test of it in the CPackComponents test. Thanks to Clinton Stimpson for the patch.
2009-01-22 12:12:44 -05:00
Philip Lowman
7939529d0c
BUG: Fixes detection of FLTK on Gentoo (Issue #7809 )
2009-01-21 23:52:37 -05:00
Philip Lowman
570d6b4aa9
BUG: Fixes #8376 : FindFLTK fails because include file can be FL/Fl.H and CMake
...
only looks for FL/Fl.h. Verified: all FLTK header files in 1.1.9 are .H ...
how bizarre.
2009-01-21 22:43:22 -05:00
David Cole
c647ed54d9
BUG: Fix issue #7833 : Add file extension handling to CPack generated installers for OSXX11 applications. Also modify the X11 test to build such an installer on Mac builds that test CPack and have X11 available. Thanks to Wes Turner for the patch.
2009-01-21 11:54:30 -05:00
Brad King
d2f27558df
STYLE: Fix if/endif mismatch in FindKDE4
2009-01-21 09:49:37 -05:00
Philip Lowman
163af93449
BUG: Fix detection of boost libraries without any compiler encoding (e.g.
...
Gentoo 1.37 system installed boost). Fixes issue #8404 reported on mailing
list.
2009-01-19 22:51:27 -05:00
Philip Lowman
47588ac8d0
BUG: Fixes Issue #8054 and more. DOXYGEN_DOT_FOUND now exists, errant
...
mark_as_advanced variables removed, documentation cleaned up and OSX stuff
isolated to it's own section, support added for DOXYGEN_SKIP_DOT, support
added to call FindPackageHandleStandardArgs to avoid output on every CMake
run.
2009-01-19 22:28:09 -05:00
Philip Lowman
4dae139ad4
BUG: Missing "icpc" as a possible CXX compiler for Intel C++. Also refactored
...
gcc -dumpversion code and regex to a function.
2009-01-19 21:30:04 -05:00
Philip Lowman
9aaa9f7529
BUG: Switch FindBoost.cmake to use CMAKE_COMPILER_IS_GNUCXX (Issue #8398 )
2009-01-19 19:21:10 -05:00
Philip Lowman
d1640b11de
BUG: Fixed Issue #7331 Bugs in Findosg*.cmake. Also added OPENTHREADS_LIBRARIES.
2009-01-19 13:33:36 -05:00
Philip Lowman
d69e68609c
BUG: Reverted change made in 1.27, should be unnecessary (Issue #7508 )
2009-01-19 05:14:30 -05:00
Philip Lowman
b87e0687bd
BUG: Resolve Issue #7508 , FindBoost fails to find boost on SuSE 10.3
2009-01-19 02:35:03 -05:00
Philip Lowman
ab36f5a11e
ENH: Added 1.38 since it'll be out soon. More documentation and clarified examples, addressed autolinking issue on MSVC
2009-01-19 02:27:32 -05:00
Philip Lowman
6d37f93a38
BUG: Do not check for GCC version encoding in filenames on Boost libraries prior to 1.35. Eliminate "lib" prefix except on MSVC.
2009-01-19 01:02:46 -05:00
Philip Lowman
f7ba5a7fc8
BUG: Fixed additional issues with autodetecting compiler tags properly including Issue #6926
2009-01-18 17:19:54 -05:00
Philip Lowman
ee91442a90
BUG: Fixes problem with _boost_ABI_TAG appending to itself if FindBoost is called more than once (Issue #7460 )
2009-01-18 16:40:53 -05:00
Philip Lowman
d077940f94
STYLE: minor cleanup
2009-01-18 15:53:45 -05:00
Philip Lowman
c4e85549c9
BUG: Removed some code which was squashing Boost_LIBRARIES on WIN32 under the auspices of forcing the user to use autolinking, but it only did this squashing on the first call to FindBoost. Subsequent calls to FindBoost would not have Boost_LIBRARIES squashed so this code was doing nothing. If you link your target_link_libraries() against dynamic boost libraries it appears from tools like Dependency Walker that the pragma calls to autolink to the static boost libraries are ignored. It's therefore too late to make this squash apply to all calls to FindBoost because that would break users that have not setup autolinking properly. For now this fix is largely cosmetic since the original code never worked anyways (see version 1.5 introduced on 4/22/08).
2009-01-18 15:41:18 -05:00
Philip Lowman
909dd8af48
BUG: Fixed documentation bug with Boost_USE_MULTITHREADED, removed OPTION() call since it would be useless and confusing after an initial configure.
2009-01-18 15:17:31 -05:00
Philip Lowman
5913dc1e88
BUG: Fixed superfluous and duplicate dirs in Boost_LIBRARY_DIR. Employed workaround for Issue #8378 . Resolves Issue #8099
2009-01-18 14:40:48 -05:00
Philip Lowman
34b9dcc3b2
BUG: Fixed issues using FindBoost with BoostPro packaged releases. Fixed
...
regression for bjam users on Win32 introduced in 1.4.2.4 (7/13/08). This
commit partially or completely resolves Issues #8173 , #8326 , #7943 , #7725 !
2009-01-16 04:07:03 -05:00
Philip Lowman
20f2a086d3
BUG: fixed bug #7529 : FindBoost fails to find boost on SuSE 11.0 due to GCC
...
reporting version x.y and not x.y.z
2009-01-15 02:07:03 -05:00
Philip Lowman
0864c71c3b
BUG: Fixes bug #8059 . Also added Boost_DEBUG variable for troubleshooting.
2009-01-15 01:22:15 -05:00
Alexander Neundorf
4a6ea82257
ENH: fix #7913 : find also python 2.6 on windows
...
Alex
2009-01-10 08:46:37 -05:00
Alexander Neundorf
b4956a574a
BUG: fix #8122 , _firstPoFile was not empty because it was no real variable
...
but just a macro argument -> make it a real variable
Alex
2009-01-10 08:39:35 -05:00
Alexander Neundorf
097af4b86e
STYLE: fix typo
...
Alex
2009-01-09 20:26:07 -05:00
Alexander Neundorf
fe3945bee1
STYLE: this is not necessary anymore for kdevelop, the kdevelop generator
...
now generates the project so that the environment variable VERBOSE is set to
1 when make is executed by kdevelop (and additionally this didn't work,
since CMAKE_GENERATOR never matches KDevelop3, this is now in
CMAKE_EXTRA_GENERATOR)
Alex
2009-01-09 20:18:25 -05:00
Philip Lowman
206c09c4f6
BUG: Fixed CXXTEST_INCLUDE_DIRS so it will work properly with NOTFOUND.
...
Also eliminated superfluous CXXTEST_FOUND assignment and cleaned up the code
and added additional documentation. Tagged v1.0.
2009-01-08 04:47:40 -05:00
David Cole
b640257884
BUG: Fix install_name_tool problem on the Mac when a PROJECT(... NONE) is followed by multiple calls to ENABLE_LANGUAGE. Use find_program to set the CMAKE_INSTALL_NAME_TOOL variable so it gets saved in the cache as a full path to the install_name_tool executable rather than a simple set which eventually goes out of scope.
2008-12-30 09:11:54 -05:00
David Cole
b77d00b7f6
ENH: New location to look for "dot"
2008-12-26 12:06:38 -05:00
David Cole
5d9e78e918
ENH: Re-work of fix committed yesterday for the Watcom WMake dashboard. Fix it properly by using the SYMBOLIC source file property to indicate to WMake when the sentinel file is not actually written by the update step.
2008-12-24 10:10:40 -05:00
Miguel A. Figueroa-Villanueva
1e5d400100
BUG: Fixed placement of initial wxWidgets_FOUND=TRUE statement, which allowed
...
some cases to breakaway from tests without resetting to FALSE (BUG: 8188).
2008-12-24 04:31:33 -05:00
Alexander Neundorf
903b0a8150
BUG: use FindPkgConfig.cmake instead of UsePkgConfig.cmake, sync with KDE
...
svn and fix bug #8290
Alex
2008-12-22 03:00:08 -05:00
David Cole
468c9e250b
ENH: Add the update step in between download and build. Add UPDATE_ARGS and UPDATE_COMMAND handling. Output a -complete sentinel in synch with the -install sentinel, but do not list it as an OUTPUT of the custom command. That breaks the chaining of add_custom_commands between custom targets, but allows for a file-level dependency expression that will cause proper incremental rebuilds. When earlier targets rebuild, subsequent dependent targets will also rebuild. CVS and SVN update commands are always out-of-date so that they always run to get the latest source. To suppress that behavior on a per-external project basis use an explicit empty string for UPDATE_COMMAND. The source will still be checked out from the repository prior to the update step by the download step.
2008-12-19 10:35:16 -05:00