[cmake-developers] [PATCH] DEFINES_FILE feature for FindBISON module

2015-05-30 Thread 정언
Hi,

I made a slight change on FindBISON module, adding a new feature
DEFINES_FILE that corresponds to bison command line option `--defines`. It
is added because FindBISON always internally recognizes header file name as
the one automatically generated by `-d` option, so passing `--defines`
through COMPILE_FLAGS is not helpful.

Patch files are attached.

This feature is formerly posted as an open PR on GitHub.
https://github.com/Kitware/CMake/pull/157
Now I moved to this mailing list under suggestion from Brad King.

Please see the GitHub PR page for details.

-- 
Eon Jeong


0001-Add-DEFINES-feature-for-FindBISON.patch
Description: Binary data


0002-Multiple-changes-under-adding-DEFINES_FILE-feature-f.patch
Description: Binary data
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

[cmake-developers] [FindPostgreSQL.cmake] Add support for PostgreSQL 9.3 and 9.4 on Debian/Ubuntu

2015-05-30 Thread Tamar Kranenburg
Hello,Attached is my second attempt to add support for PostgreSQL 9.3 and 9.4 on Debian/Ubuntu.Additionally the module does not use a static path anymore when targeting windows platform.Github:https://github.com/Kitware/CMake/compare/master...takar:fix_findpostgresqlSummary of changes:- Use PATH_SUFFIXES instead of PATHS when using find_path or find_library- Generate additional search paths for linux to find pg_type.h- Use separate PATH_SUFFIXES variables for library, type and include (this is just an optimization)- Whitespace correctionsMotivation:On Ubuntu/Debian, starting with PostgreSQL 9.3 the header file pg_type.h is moved to a separate package (i.e. from libpq-dev to postgresql-server-dev) and consequently the file pg_type.h is moved to a new location:/usr/include/postgresql/version/server/catalog/pg_type.hThe additional suffixes for pg_type.h aregenerated by looping over the PostgreSQL_KNOWN_VERSIONS variable. This has the additional advantage that a user may add custom versions or change the priority (when running multiple pgsql servers) by prepending additional versions.This patch was tested on the following platforms:- Windows 7 64b + Cmake 32b + MinGW 32b + PostgreSQL 9.3  9.4- Debian 7 (wheezy) + PostgreSQL 9.1- Debian 8 (jessie) + PostgreSQL 9.4- Mac OSX 10.10.3 (Yosemite) + Homebrew + PostgreSQL 9.4.1Furthermore, I confirmed that under windows the location of the header files and libraries is consistent in all PostgreSQL 8.0+ versions.I’m open for any suggestions you may have.Best regards,Tamar

0001-Fix-module-FindPostgreSQL-for-PG-9.4-9.3-and-9.2-und.patch
Description: Binary data
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

[cmake-developers] [patch] FindBoost: Mark Boost_LIBRARY_DIR_[RELEASE, DEBUG] cache entries as advanced

2015-05-30 Thread Sylvain Joubert

Hello,

The recent development to support different LIBRARY_DIR for Boost have 
made the new cache entries appear in the default cache.


I have searched in the code history of the FindBoost.cmake file to find 
why the old Boost_LIBRARY_DIR was marked as advanced while the new 
ones do not, ... and I failed.
Especially, I couldn't find any mark_as_advanced(Boost_LIBRARY_DIR) that 
was not reported to the new variables
I am guessing either there is something weird, a bug elsewhere or I'm 
most likely missing something.

If someone is able to find the explanation it would be nice.

Anyway, here is a patch that marks the new variables as advanced.
But, depending on the answer to my history related interrogation it may 
not be the best patch to fix the issue.


Sylvain
From feeebe8666883eab6b638ce7771a015ea229d503 Mon Sep 17 00:00:00 2001
From: Sylvain Joubert joubert...@gmail.com
Date: Sat, 30 May 2015 15:32:03 +0200
Subject: [PATCH] FindBoost: Mark Boost_LIBRARY_DIR_[RELEASE,DEBUG] cache
 entries as advanced

---
 Modules/FindBoost.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index c844aed..21883eb 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -330,6 +330,7 @@ macro(_Boost_FIND_LIBRARY var build_type)
 if(NOT Boost_LIBRARY_DIR_${build_type})
   get_filename_component(_dir ${${var}} PATH)
   set(Boost_LIBRARY_DIR_${build_type} ${_dir} CACHE PATH Boost library directory ${build_type} FORCE)
+  mark_as_advanced(Boost_LIBRARY_DIR_${build_type})
 endif()
   elseif(_Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT)
 # Try component-specific hints but do not save Boost_LIBRARY_DIR_[RELEASE,DEBUG].
-- 
2.1.4

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers