summaryrefslogtreecommitdiffstats
path: root/Modules/FindGTK2.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'FindGTK2vd2'Brad King2013-07-021-0/+17
|\ | | | | | | | | 60e4555 FindGTK2: Add GTK2_DEFINITIONS variable
| * FindGTK2: Add GTK2_DEFINITIONS variableDaniele E. Domenichelli2013-06-291-0/+17
| | | | | | | | | | According to https://wiki.gnome.org/gtkmm/MSWindows on MSVC the /vd2 flag should be passed to the compiler in order to use gtkmm
* | FindGTK2: Do not fail on MSVC11 if vc100 libraries are availableDaniele E. Domenichelli2013-06-291-0/+3
|/
* FindGTK2: Detect gthread libraryDaniele E. Domenichelli2013-06-191-0/+3
|
* FindGTK2: Move check for pangocairo in gtk moduleDaniele E. Domenichelli2013-06-191-2/+2
|
* FindGTK2: Fix GTK2_LIBRARIES order for static gtk librariesRodolfo Schulz de Lima2013-01-281-35/+41
| | | | | | | | Before this, when creating GTK2_LIBRARIES, FindGTK2 added the GTK dependencies in wrong order into GTK2_LIBRARIES. With dynamic libraries this is not a major problem, but when linking to static gtk libraries, the linker outputs a lot of undefined symbols. Reorder the calls that append libraries to GTK2_LIBRARIES to respect dependency order.
* FindGTK2: Update local changelogPhilip Lowman2012-10-031-2/+5
|
* FindGTK2: #12596 Missing paths for FindGTK2 on NetBSDPhilip Lowman2012-10-031-0/+2
|
* FindGTK2: #12049 fix detection of header files on multiarch systemsPhilip Lowman2012-10-031-0/+7
|
* FindGTK2: Rollback lib64 changes which broke header file findingPhilip Lowman2012-10-031-11/+26
| | | | | | | | The changes in "use PATH_SUFFIXES to simplify find_* calls" on 8/14 regressed important functionality in FindGTK for using find_path to locate header files in <prefix>/lib/<gtk_package>/include. The find_path function doesn't search <prefix>/lib only <prefix>/include.
* Merge topic 'read-less-from-version-headers'David Cole2012-08-201-1/+1
|\ | | | | | | | | 4be6783 read less from version headers into variables
| * read less from version headers into variablesRolf Eike Beer2012-08-191-1/+1
| | | | | | | | | | | | | | | | | | Instead of reading the whole file using file(READ) and later matching on the whole file use file(STRINGS ... REGEX) to get only those lines we are interested in at all. This will make the list much smaller (good for debugging) and also the regular expressions will need to match on much smaller strings. Also unset the content variables once they are not used anymore.
* | Merge topic 'FindGTK2_12306'David Cole2012-08-201-0/+1
|\ \ | | | | | | | | | | | | ad30210 FindGTK2: Add GTK2_CAIROMMCONFIG_INCLUDE_DIR for cairommconfig.h
| * | FindGTK2: Add GTK2_CAIROMMCONFIG_INCLUDE_DIR for cairommconfig.hPhilip Lowman2012-08-181-0/+1
| |/
* | use PATH_SUFFIXES to simplify find_* callsRolf Eike Beer2012-08-141-17/+9
|/ | | | | | Especially remove "lib64" when the given paths are all Unix ones and "lib" is also explicitely given. In that case CMake will search "lib64" anyway for platforms where it is known to make sense.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-2/+2
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-7/+7
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* remove lib64 Unix paths if the respective lib path is also givenRolf Eike Beer2012-07-211-2/+0
| | | | If FIND_LIBRARY_USE_LIB64_PATHS is set both will be searched anyway.
* Modules: Include builtin FindPackageHandleStandardArgs directlyBrad King2011-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The FindPackageHandleStandardArgs module was originally created outside of CMake. It was added for CMake 2.6.0 by commit e118a627 (add a macro FIND_PACKAGE_HANDLE_STANDARD_ARGS..., 2007-07-18). However, it also proliferated into a number of other projects that at the time required only CMake 2.4 and thus could not depend on CMake to provide the module. CMake's own find modules started using the module in commit b5f656e0 (use the new FIND_PACKAGE_HANDLE_STANDARD_ARGS in some of the FindXXX modules..., 2007-07-18). Then commit d358cf5c (add 2nd, more powerful mode to find_package_handle_standard_args, 2010-07-29) added a new feature to the interface of the module that was fully optional and backward compatible with all existing users of the module. Later commit 5f183caa (FindZLIB: use the FPHSA version mode, 2010-08-04) and others shortly thereafter started using the new interface in CMake's own find modules. This change was also backward compatible because it was only an implementation detail within each module. Unforutnately these changes introduced a problem for projects that still have an old copy of FindPackageHandleStandardArgs in CMAKE_MODULE_PATH. When any such project uses one of CMake's builtin find modules the line include(FindPackageHandleStandardArgs) loads the copy from the project which does not have the new interface! Then the including find module tries to use the new interface with the old module and fails. Whether this breakage can be considered a backward incompatible change in CMake is debatable. The situation is analagous to copying a standard library header from one version of a compiler into a project and then observing problems when the next version of the compiler reports errors in its other headers that depend on its new version of the original header. Nevertheless it is a change to CMake that causes problems for projects that worked with previous versions. This problem was discovered during the 2.8.3 release candidate cycle. It is an instance of a more general problem with projects that provide their own versions of CMake modules when other CMake modules depend on them. At the time we resolved this instance of the problem with commit b0118402 (Use absolute path to FindPackageHandleStandardArgs.cmake everywhere, 2010-09-28) for the 2.8.3 release. In order to address the more general problem we introduced policy CMP0017 in commit db44848f (Prefer files from CMAKE_ROOT when including from CMAKE_ROOT, 2010-11-17). That change was followed by commit ce28737c (Remove usage of CMAKE_CURRENT_LIST_DIR now that we have CMP0017, 2010-12-20) which reverted the original workaround in favor of using the policy. However, existing project releases do not set the policy behavior to NEW and therefore still exhibit the problem. We introduced in commit a364daf1 (Allow users to specify defaults for unset policies, 2011-01-03) an option for users to build existing projects by adding -DCMAKE_POLICY_DEFAULT_CMP0017=NEW to the command line. Unfortunately this solution still does not allow such projects to build out of the box, and there is no good way to suggest the use of the new option. The only remaining solution to keep existing projects that exhibit this problem building is to restore the change originally made in commit b0118402 (Use absolute path to FindPackageHandleStandardArgs.cmake everywhere, 2010-09-28). This also avoids policy CMP0017 warnings for this particular instance of the problem the policy addresses.
* Remove usage of CMAKE_CURRENT_LIST_DIR now that we have CMP0017Alex Neundorf2011-01-041-1/+1
| | | | | | | | This puts the new search behaviour for included files in action, i.e. now when a file from Modules/ include()s another file, it also gets the one from Modules/ included, i.e. the one it expects. Alex
* 11429: FindGTK2 does not find libraries built for Visual Studio 2010Philip Lowman2010-11-101-4/+9
| | | | | Adds support for detecting builds of FindGTK2 with Visual Studio 2010. Thanks to Vincent Levesque for the patch.
* Use absolute path to FindPackageHandleStandardArgs.cmake everywhereAlex Neundorf2010-09-281-1/+1
| | | | | | | This is to avoid getting an (older) copy of FPHSA.cmake which is e.g. installed with KDE 4.5.0 and 4.5.1. Alex
* Merge patch for detecting gdk-pixbuf libraryPhilip Lowman2010-09-041-3/+8
| | | | | | | The gdk-pixbuf library was split off from core GTK in 2.21 so it could be used separately by people outside GTK. Now FindGTK searches and adds it to the library/include list. Thanks to Vincent Untz for the patch and Ricardo Cruz for the heads up.
* 10688: FindGTK2.cmake doesn't auto-detect macportsPhilip Lowman2010-08-201-1/+5
|
* Several fixes needed to improve Windows supportPhilip Lowman2010-08-121-6/+27
| | | | | | | | | | | * Add support for detecting fontconfig.h header * Call find_package(Freetype) since it's required * Add support for allowing users to add additional library directories via the GTK2_ADDITIONAL_SUFFIXES variable (kind of a future-kludge in case the GTK developers change versions on any of the directories in the future). * Fixed a problem on Windows where you had to configure twice to find the gtk & gdk libraries
* Add detection for new pangommconfig.h header filePhilip Lowman2010-08-121-0/+1
| | | | | Thanks to Sune Vuorela & the Debian Project for the patch http://git.debian.org/?p=collab-maint/cmake.git;a=commitdiff;h=5dc3acd7
* Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
|
* Should get FindGTK2 working with fink on Mac OSXPhilip Lowman2010-01-051-1/+9
|
* Convert CMake find-modules to BSD LicenseBrad King2009-09-281-7/+13
| | | | | | | This adds copyright/license notification blocks CMake's find-modules. Many 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.
* Add a blank line to my contributed find modules to prevent copyright info ↵Philip Lowman2009-09-221-1/+1
| | | | from showing up in CMake docs
* ENH: NEW: FindGTK2 modulePhilip Lowman2009-03-221-0/+540