[cmake-developers] [CMake 0014384]: FPHSA should work differently for EXACT version with patch versions

2013-08-31 Thread Mantis Bug Tracker

The following issue has been SUBMITTED. 
== 
http://cmake.org/Bug/view.php?id=14384 
== 
Reported By:Rolf Eike Beer
Assigned To:Alex Neundorf
== 
Project:CMake
Issue ID:   14384
Category:   Modules
Reproducibility:always
Severity:   minor
Priority:   normal
Status: assigned
== 
Date Submitted: 2013-08-31 10:16 CDT
Last Modified:  2013-08-31 10:16 CDT
== 
Summary:FPHSA should work differently for EXACT version with
patch versions
Description: 
There is currently no way to select e.g. Python 2.6.*. You can say

find_package(PythonLibs 2) and will get the most recent one of 2.*, e.g. 2.7 or
2.5.3
find_package(PythonLibs 2.6) and get the most recent one of 2.* that is at least
2.6, e.g. 2.7 or 2.6.3
find_package(PythonLibs 2.6 EXACT) and will get only 2.6

Giving an expression that matches 2.6.*, but not 2.7.* is currently not
possible.

I would say that 2.6.0 EXACT would match 2.6 or 2.6.0, but 2.6 EXACT would
match 2.6.*. Or one must be allowed to say 2.6.* EXACT.
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2013-08-31 10:16 Rolf Eike Beer New Issue
2013-08-31 10:16 Rolf Eike Beer Status   new = assigned 
2013-08-31 10:16 Rolf Eike Beer Assigned To   = Alex Neundorf   
==

--

Powered by www.kitware.com

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

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

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


[cmake-developers] CMakeLists.txt needs to be undone.

2013-08-31 Thread outro pessoa
It's that simple.
1. I know that this isn't the traverso mailing list.
2. There is no response; and, therefore, it is up to me to fix it.
3. Resetting vorbis/vorbisfile.h to accept the FreeBSD paths does not work.
4. Contacting the former maintainers yields no result.
--

Powered by www.kitware.com

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

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

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

Re: [CMake] CMake Code Beautifier

2013-08-31 Thread p...@mad-scientist.net
Uncrustify would not be a good fit at all.  It's designed specifically for 
C-like languages and CMake syntax is decidedly not C-like.--

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://www.cmake.org/mailman/listinfo/cmake

[CMake] Fortran program linked with C++ library

2013-08-31 Thread Marcin Wojdyr
Hello,
What's the best practice for linking Fortran program with C++ library?
The library is external, built using autotools, either dynamic or static.

The problem is that runtime c++ library is not linked when the library
is static.
I though that the recommended way to deal with it is:

set_property(TARGET ${prog} PROPERTY LINKER_LANGUAGE CXX)

It works fine with GCC but I've just found out it doesn't work with
Intel compiler on Linux:
undefined reference to `main'
I'm not sure how about other compilers.

Is there a better way?

Marcin
--

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://www.cmake.org/mailman/listinfo/cmake


[CMake] CPack packagemaker osx post install script

2013-08-31 Thread Francois Coulombe

Hi,
I am wondering if anyone has managed to get the post install post flight 
post upgrade to work on osx with package maker as generator.
I found a few entries that didn't seem to go anywhere (no resolution to 
the actual problem)


and i can't seem to get it to work with:

set( CPACK_POSTFLIGHT_SCRIPT postflight.sh )
set(CPACK_POSTUPGRADE_SCRIPT postflight.sh)

neither seem to run.

any info would be appreciated

cheers
Francois
--

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://www.cmake.org/mailman/listinfo/cmake


[CMake] Reverse engineering a cmake CMakeLists.txt script.

2013-08-31 Thread outro pessoa
In order to fix something, I need to know how to undo it first.
An answer of, Gee, we don't know how to undo what was done and we never
thought it may be necessary would suffice if the system was made as such.
--

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://www.cmake.org/mailman/listinfo/cmake

[Cmake-commits] CMake branch, next, updated. v2.8.11.2-4064-gb0761fa

2013-08-31 Thread Rolf Eike Beer
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project CMake.

The branch, next has been updated
   via  b0761face54aa8eab247a7f0d0da9dfc100d0095 (commit)
   via  89cfa2005207ae9423d7a200cd22ed62ff733161 (commit)
  from  03556af64277597a98025d2e638b01f54a215bb6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b0761face54aa8eab247a7f0d0da9dfc100d0095
commit b0761face54aa8eab247a7f0d0da9dfc100d0095
Merge: 03556af 89cfa20
Author: Rolf Eike Beer e...@sf-mail.de
AuthorDate: Sat Aug 31 11:46:16 2013 -0400
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Sat Aug 31 11:46:16 2013 -0400

Merge topic 'FindLua' into next

89cfa20 Modules: add FindLua.cmake


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=89cfa2005207ae9423d7a200cd22ed62ff733161
commit 89cfa2005207ae9423d7a200cd22ed62ff733161
Author: Rolf Eike Beer e...@sf-mail.de
AuthorDate: Sat Aug 31 17:44:36 2013 +0200
Commit: Rolf Eike Beer e...@sf-mail.de
CommitDate: Sat Aug 31 17:44:36 2013 +0200

Modules: add FindLua.cmake

This is a version agnostic variant of FindLua50.cmake and FindLua51.cmake.

diff --git a/Modules/FindLua.cmake b/Modules/FindLua.cmake
new file mode 100644
index 000..31fe54c
--- /dev/null
+++ b/Modules/FindLua.cmake
@@ -0,0 +1,153 @@
+# Locate Lua library
+# This module defines
+#  LUA_FOUND  - if false, do not try to link to Lua
+#  LUA_LIBRARIES  - both lua and lualib
+#  LUA_INCLUDE_DIR- where to find lua.h
+#  LUA_VERSION_STRING - the version of Lua found
+#  LUA_VERSION_MAJOR  - the major version of Lua
+#  LUA_VERSION_MINOR  - the minor version of Lua
+#  LUA_VERSION_PATCH  - the patch version of Lua
+#
+# Note that the expected include convention is
+#  #include lua.h
+# and not
+#  #include lua/lua.h
+# This is because, the lua location is not standardized and may exist
+# in locations other than lua/
+
+#=
+# Copyright 2007-2009 Kitware, Inc.
+# Copyright 2013 Rolf Eike Beer e...@sf-mail.de
+#
+# Distributed under the OSI-approved BSD License (the License);
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=
+# (To distribute this file outside of CMake, substitute the full
+#  License text for the above reference.)
+
+unset(_lua_include_subdirs)
+unset(_lua_library_names)
+
+# this is a function only to have all the variables inside go away 
automatically
+function(set_lua_version_vars)
+set(LUA_VERSIONS5 5.3 5.2 5.1 5.0)
+
+if (Lua_FIND_VERSION_EXACT)
+if (Lua_FIND_VERSION_COUNT GREATER 1)
+set(lua_append_versions ${Lua_FIND_VERSION_MAJOR} 
${Lua_FIND_VERSION_MINOR})
+endif ()
+elseif (Lua_FIND_VERSION)
+# once there is a different major version supported this should become 
a loop
+if (NOT Lua_FIND_VERSION_MAJOR GREATER 5)
+if (Lua_FIND_VERSION_COUNT EQUAL 1)
+set(lua_append_versions ${LUA_VERSIONS5})
+else ()
+foreach (subver IN LISTS LUA_VERSIONS5)
+if (NOT subver VERSION_LESS ${Lua_FIND_VERSION})
+list(APPEND lua_append_versions ${subver})
+endif ()
+endforeach ()
+endif ()
+endif ()
+else ()
+# once there is a different major version supported this should become 
a loop
+set(lua_append_versions ${LUA_VERSIONS5})
+endif ()
+
+foreach (ver IN LISTS lua_append_versions)
+string(REGEX MATCH ^([0-9]+)\\.([0-9]+)$ _ver ${ver})
+list(APPEND _lua_include_subdirs
+ include/lua${CMAKE_MATCH_1}${CMAKE_MATCH_2}
+ include/lua${CMAKE_MATCH_1}.${CMAKE_MATCH_2}
+ include/lua-${CMAKE_MATCH_1}.${CMAKE_MATCH_2}
+)
+list(APPEND _lua_library_names
+ lua${CMAKE_MATCH_1}${CMAKE_MATCH_2}
+ lua${CMAKE_MATCH_1}.${CMAKE_MATCH_2}
+ lua-${CMAKE_MATCH_1}.${CMAKE_MATCH_2}
+)
+endforeach ()
+
+set(_lua_include_subdirs ${_lua_include_subdirs} PARENT_SCOPE)
+set(_lua_library_names ${_lua_library_names} PARENT_SCOPE)
+endfunction(set_lua_version_vars)
+
+set_lua_version_vars()
+
+find_path(LUA_INCLUDE_DIR lua.h
+  HINTS
+ENV LUA_DIR
+  PATH_SUFFIXES ${_lua_include_subdirs} include/lua include
+  PATHS
+  ~/Library/Frameworks
+  

[Cmake-commits] CMake branch, next, updated. v2.8.11.2-4066-gcc33c4c

2013-08-31 Thread Rolf Eike Beer
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project CMake.

The branch, next has been updated
   via  cc33c4c0f3557cd153dfc196fc29ec4f834c4253 (commit)
   via  afd4f7f0428f48c6a01eb828dd07e057048edc49 (commit)
  from  b0761face54aa8eab247a7f0d0da9dfc100d0095 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cc33c4c0f3557cd153dfc196fc29ec4f834c4253
commit cc33c4c0f3557cd153dfc196fc29ec4f834c4253
Merge: b0761fa afd4f7f
Author: Rolf Eike Beer e...@sf-mail.de
AuthorDate: Sat Aug 31 11:47:29 2013 -0400
Commit: CMake Topic Stage kwro...@kitware.com
CommitDate: Sat Aug 31 11:47:29 2013 -0400

Merge topic 'FindPython_versions' into next

afd4f7f FindPython*: simplify version selection


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=afd4f7f0428f48c6a01eb828dd07e057048edc49
commit afd4f7f0428f48c6a01eb828dd07e057048edc49
Author: Rolf Eike Beer e...@sf-mail.de
AuthorDate: Sat Aug 31 17:46:44 2013 +0200
Commit: Rolf Eike Beer e...@sf-mail.de
CommitDate: Sat Aug 31 17:46:44 2013 +0200

FindPython*: simplify version selection

CMake already provides the version components split into variables, no need 
to
split them again.

diff --git a/Modules/FindPythonInterp.cmake b/Modules/FindPythonInterp.cmake
index 7fb65b8..b6b7897 100644
--- a/Modules/FindPythonInterp.cmake
+++ b/Modules/FindPythonInterp.cmake
@@ -36,28 +36,30 @@ set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
 set(_PYTHON3_VERSIONS 3.3 3.2 3.1 3.0)
 
 if(PythonInterp_FIND_VERSION)
-if(PythonInterp_FIND_VERSION MATCHES ^[0-9]+\\.[0-9]+(\\.[0-9]+.*)?$)
-string(REGEX REPLACE ^([0-9]+\\.[0-9]+).* \\1 _PYTHON_FIND_MAJ_MIN 
${PythonInterp_FIND_VERSION})
-string(REGEX REPLACE ^([0-9]+).* \\1 _PYTHON_FIND_MAJ 
${_PYTHON_FIND_MAJ_MIN})
-list(APPEND _Python_NAMES python${_PYTHON_FIND_MAJ_MIN} 
python${_PYTHON_FIND_MAJ})
+if(PythonInterp_FIND_VERSION_COUNT GREATER 1)
+set(_PYTHON_FIND_MAJ_MIN 
${PythonInterp_FIND_VERSION_MAJOR}.${PythonInterp_FIND_VERSION_MINOR})
+list(APPEND _Python_NAMES
+ python${_PYTHON_FIND_MAJ_MIN}
+ python${PythonInterp_FIND_VERSION_MAJOR})
 unset(_PYTHON_FIND_OTHER_VERSIONS)
 if(NOT PythonInterp_FIND_VERSION_EXACT)
-foreach(_PYTHON_V ${_PYTHON${_PYTHON_FIND_MAJ}_VERSIONS})
+foreach(_PYTHON_V 
${_PYTHON${PythonInterp_FIND_VERSION_MAJOR}_VERSIONS})
 if(NOT _PYTHON_V VERSION_LESS _PYTHON_FIND_MAJ_MIN)
 list(APPEND _PYTHON_FIND_OTHER_VERSIONS ${_PYTHON_V})
 endif()
  endforeach()
 endif()
 unset(_PYTHON_FIND_MAJ_MIN)
-unset(_PYTHON_FIND_MAJ)
 else()
-list(APPEND _Python_NAMES python${PythonInterp_FIND_VERSION})
-set(_PYTHON_FIND_OTHER_VERSIONS 
${_PYTHON${PythonInterp_FIND_VERSION}_VERSIONS})
+list(APPEND _Python_NAMES python${PythonInterp_FIND_VERSION_MAJOR})
+set(_PYTHON_FIND_OTHER_VERSIONS 
${_PYTHON${PythonInterp_FIND_VERSION_MAJOR}_VERSIONS})
 endif()
 else()
 set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON3_VERSIONS} ${_PYTHON2_VERSIONS} 
${_PYTHON1_VERSIONS})
 endif()
 
+message(STATUS names ${_Python_NAMES})
+message(STATUS other versions ${_PYTHON_FIND_OTHER_VERSIONS})
 list(APPEND _Python_NAMES python)
 
 # Search for the current active python version first
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
index bffa9fb..8356ed9 100644
--- a/Modules/FindPythonLibs.cmake
+++ b/Modules/FindPythonLibs.cmake
@@ -41,9 +41,8 @@ set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
 set(_PYTHON3_VERSIONS 3.3 3.2 3.1 3.0)
 
 if(PythonLibs_FIND_VERSION)
-if(PythonLibs_FIND_VERSION MATCHES ^[0-9]+\\.[0-9]+(\\.[0-9]+.*)?$)
-string(REGEX REPLACE ^([0-9]+\\.[0-9]+).* \\1 _PYTHON_FIND_MAJ_MIN 
${PythonLibs_FIND_VERSION})
-string(REGEX REPLACE ^([0-9]+).* \\1 _PYTHON_FIND_MAJ 
${_PYTHON_FIND_MAJ_MIN})
+if(PythonLibs_FIND_VERSION_COUNT GREATER 1)
+set(_PYTHON_FIND_MAJ_MIN 
${PythonLibs_FIND_VERSION_MAJOR}.${PythonLibs_FIND_VERSION_MINOR})
 unset(_PYTHON_FIND_OTHER_VERSIONS)
 if(PythonLibs_FIND_VERSION_EXACT)
 if(_PYTHON_FIND_MAJ_MIN STREQUAL PythonLibs_FIND_VERSION)
@@ -52,16 +51,15 @@ if(PythonLibs_FIND_VERSION)
 set(_PYTHON_FIND_OTHER_VERSIONS ${PythonLibs_FIND_VERSION} 
${_PYTHON_FIND_MAJ_MIN})
 endif()
 else()
-foreach(_PYTHON_V ${_PYTHON${_PYTHON_FIND_MAJ}_VERSIONS})
+foreach(_PYTHON_V 
${_PYTHON${PythonLibs_FIND_VERSION_MAJOR}_VERSIONS})
 if(NOT _PYTHON_V 

[Cmake-commits] CMake branch, master, updated. v2.8.11.2-818-gb916555

2013-08-31 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project CMake.

The branch, master has been updated
   via  b91655585e14e680ce0bce1729c1281632d78504 (commit)
  from  ce6c7366f77d019d4a04c0e55199b568098a5adb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b91655585e14e680ce0bce1729c1281632d78504
commit b91655585e14e680ce0bce1729c1281632d78504
Author: Kitware Robot kwro...@kitware.com
AuthorDate: Sun Sep 1 00:01:15 2013 -0400
Commit: Kitware Robot kwro...@kitware.com
CommitDate: Sun Sep 1 00:01:15 2013 -0400

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 14dece6..b080845 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -2,5 +2,5 @@
 set(CMake_VERSION_MAJOR 2)
 set(CMake_VERSION_MINOR 8)
 set(CMake_VERSION_PATCH 11)
-set(CMake_VERSION_TWEAK 20130831)
+set(CMake_VERSION_TWEAK 20130901)
 #set(CMake_VERSION_RC 1)

---

Summary of changes:
 Source/CMakeVersion.cmake |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits