Re: [cmake-developers] Merging cmake-link-interface-libraries into master?

2011-10-19 Thread Stephen Kelly
Brad King wrote:

 On 10/19/2011 6:04 AM, Stephen Kelly wrote:
 I saw that the weekly merge of branches into master happened yesterday,
 but the cmake-link-interface-libraries branch didn't make the cut.
 
 Thanks for your work on this.
 
 So I'd like to know:

 1) What made it not get merged?

 2) What has to change for it to get merged in?
 
 I said last week I wouldn't be able to review it thoroughly for at
 least two weeks.  That means not until next week at the earliest.

Ah I see. I forgot about that and when it was you said that.

Not a major rush anyway. I'm still trying to get used to the cmake 
development and release model.

Sorry for the noise,

Steve.


--

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] new module: FindPCRE.cmake

2011-10-19 Thread Michael Wild

On 10/19/2011 11:15 AM, Martin Konrad wrote:

Hi,
here is a module that tries to find the Perl Compatible Regular
Expression library. Maybe this library is generic enough to ship this
module with CMake?

Cheers

Martin


See here on how to module submission process works: 
http://www.cmake.org/Wiki/CMake:Module_Maintainers


Michael
--

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


Re: [CMake] Anybody succeeded with VS/NASM?

2011-10-19 Thread Micha Renner
Am Dienstag, den 18.10.2011, 13:47 +0400 schrieb Vladimir Chebotarev:
 Hi, Micha.
 
 When is it going to get fixed?
I dont't know.

  Can I help with it?
I would appreciate it, but I'm not a maintainer.

#12465 of the bugtracker had been closed now.
Please look here http://public.kitware.com/Bug/view.php?id=11536 to see
what happens.
If you have questions or suggestions, you should login there.

Greetings

Micha






 Am Montag, den 17.10.2011, 21:42 +0400 schrieb Vladimir Chebotarev:
  Hi.
  
  I'm trying to compile .cpp file along with .asm on Visual Studio.
  It correctly finds NASM assembler, but .asm file seems not to be included 
  to build.
  
  Have tried VS 2005 and 2010, cmake 2.8.6 and 2.8.6-20111015.
  It works on linux/make generators of course.
 
 This is currently not possible.
 See: http://public.kitware.com/Bug/view.php?id=12465
 
 A work-around is here:
 http://www.cmake.org/pipermail/cmake/2011-August/045881.html
 
 Look for The only way to use... 
 It should work for nasm too.
 
 --
 Best Regards.
 Vladimir.


--

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


[CMake] tried to use pkgcpnfig to compile my project

2011-10-19 Thread David Boesner
Hi

I've tried to use pgkconfig to compile my project.
I used this as an example:
http://www.vtk.org/Wiki/CMake:How_To_Find_Libraries
chapter 4.1

I get the following Errormessage:

fatal error: /gtk/gtk.h: Datei oder Verzeichnis nicht gefunden

German: Datei oder Verzeichnis nicht gefunden
English: File or directory not found


Please help me

Regard

David
cmake_minimum_required (VERSION 2.6)
project (GUI)

# - Try to find ImageMagick++
# Once done, this will define
#
#  Magick++_FOUND - system has Magick++
#  Magick++_INCLUDE_DIRS - the Magick++ include directories
#  Magick++_LIBRARIES - link these to use Magick++

include(LibFindMacros.cmake)

set(GTK+-3.0_INCLUDE_DIR /gtk-3.0/)

add_executable(TEST test.c)

# Dependencies
libfind_package(/pkgconfig/GTK+-3.0 GTK)


# Use pkg-config to get hints about paths
libfind_pkg_check_modules(GTK+-3.0_PKGCONF gtk+-3.0)

# Include dir
find_path(GTK+-3.0_INCLUDE_DIR
  NAMES gtk.h
  PATHS ${GTK+-3.0_PKGCONF_INCLUDE_DIRS}
)
MESSAGE(path ${GTK+-3.0_PKGCONF_INCLUDE_DIRS})


include_directories(${GTK+-3.0_INCLUDE_DIR})

# Finally the library itself
find_library(GTK+-3.0_LIBRARY
  NAMES GTK+-3.0
  PATHS ${GTK+-3.0_PKGCONF_LIBRARY_DIRS}
)

target_link_libraries(TEST GTK+-3.0_LIBRARY)

# Set the include dir variables and the libraries and let libfind_process do 
the rest.
# NOTE: Singular variables for this library, plural for libraries this this lib 
depends on.
set(GTK+-3.0_PROCESS_INCLUDES GTK+-3.0_INCLUDE_DIR GTK_INCLUDE_DIRS)
set(GTK+-3.0_PROCESS_LIBS GTK+-3.0_LIBRARY GTK_LIBRARIES)
libfind_process(GTK+-3.0)

# add the install targets
install (TARGETS TEST DESTINATION ${PROJECT_BINARY_DIR})
# Works the same as find_package, but forwards the REQUIRED and QUIET arguments
# used for the current package. For this to work, the first parameter must be the
# prefix of the current package, then the prefix of the new package etc, which are
# passed to find_package.
macro (libfind_package PREFIX)
  set (LIBFIND_PACKAGE_ARGS ${ARGN})
  if (${PREFIX}_FIND_QUIETLY)
set (LIBFIND_PACKAGE_ARGS ${LIBFIND_PACKAGE_ARGS} QUIET)
  endif (${PREFIX}_FIND_QUIETLY)
  if (${PREFIX}_FIND_REQUIRED)
set (LIBFIND_PACKAGE_ARGS ${LIBFIND_PACKAGE_ARGS} REQUIRED)
  endif (${PREFIX}_FIND_REQUIRED)
  find_package(${LIBFIND_PACKAGE_ARGS})
endmacro (libfind_package)

# CMake developers made the UsePkgConfig system deprecated in the same release (2.6)
# where they added pkg_check_modules. Consequently I need to support both in my scripts
# to avoid those deprecated warnings. Here's a helper that does just that.
# Works identically to pkg_check_modules, except that no checks are needed prior to use.
macro (libfind_pkg_check_modules PREFIX PKGNAME)
  if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
include(UsePkgConfig)
pkgconfig(${PKGNAME} ${PREFIX}_INCLUDE_DIRS ${PREFIX}_LIBRARY_DIRS ${PREFIX}_LDFLAGS ${PREFIX}_CFLAGS)
  else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
find_package(PkgConfig)
if (PKG_CONFIG_FOUND)
  pkg_check_modules(${PREFIX} ${PKGNAME})
endif (PKG_CONFIG_FOUND)
  endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
endmacro (libfind_pkg_check_modules)

# Do the final processing once the paths have been detected.
# If include dirs are needed, ${PREFIX}_PROCESS_INCLUDES should be set to contain
# all the variables, each of which contain one include directory.
# Ditto for ${PREFIX}_PROCESS_LIBS and library files.
# Will set ${PREFIX}_FOUND, ${PREFIX}_INCLUDE_DIRS and ${PREFIX}_LIBRARIES.
# Also handles errors in case library detection was required, etc.
macro (libfind_process PREFIX)
  # Skip processing if already processed during this run
  if (NOT ${PREFIX}_FOUND)
# Start with the assumption that the library was found
set (${PREFIX}_FOUND TRUE)

# Process all includes and set _FOUND to false if any are missing
foreach (i ${${PREFIX}_PROCESS_INCLUDES})
  if (${i})
set (${PREFIX}_INCLUDE_DIRS ${${PREFIX}_INCLUDE_DIRS} ${${i}})
mark_as_advanced(${i})
  else (${i})
set (${PREFIX}_FOUND FALSE)
  endif (${i})
endforeach (i)

# Process all libraries and set _FOUND to false if any are missing
foreach (i ${${PREFIX}_PROCESS_LIBS})
  if (${i})
set (${PREFIX}_LIBRARIES ${${PREFIX}_LIBRARIES} ${${i}})
mark_as_advanced(${i})
  else (${i})
set (${PREFIX}_FOUND FALSE)
  endif (${i})
endforeach (i)

# Print message and/or exit on fatal error
if (${PREFIX}_FOUND)
  if (NOT ${PREFIX}_FIND_QUIETLY)
message (STATUS Found ${PREFIX} ${${PREFIX}_VERSION})
  endif (NOT ${PREFIX}_FIND_QUIETLY)
else (${PREFIX}_FOUND)
  if (${PREFIX}_FIND_REQUIRED)
foreach (i ${${PREFIX}_PROCESS_INCLUDES} ${${PREFIX}_PROCESS_LIBS})
  message(${i}=${${i}})
endforeach (i)
message (FATAL_ERROR Required library ${PREFIX} NOT FOUND.\nInstall the library (dev version) and 

Re: [CMake] always rebuild executable

2011-10-19 Thread Michael Hertling
On 10/18/2011 02:21 PM, Anton Sibilev wrote:
 Hi! Looking for some help..
 I use add_executable(exename) + target_link_libraries (exename
 staticlibname), linux OS. If 'staticlibname' is not under CMake and chagnes
 somehow, CMake will not rebuild executable.
 And so I have a problem, that I have few updates of 'staticlibname' lib, but
 very old executable. Can I force to rebuild executable every build?

What do you mean with rebuild? If you just want to *relink* the final
binary - which is sufficient to incorporate a changed static library -
use a full path to the latter as recommended in the meantime. If you
actually want to *recompile* the final binary's object files, you
might do the following:

# CMakeLists.txt:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
PROJECT(REBUILD C)
SET(CMAKE_VERBOSE_MAKEFILE ON)
FILE(WRITE ${CMAKE_BINARY_DIR}/f.c void f(void){}\n)
EXECUTE_PROCESS(COMMAND gcc -c f.c)
EXECUTE_PROCESS(COMMAND ar cr libf.a f.o)
FILE(WRITE ${CMAKE_BINARY_DIR}/main.c int main(void){return 0;}\n)
FILE(WRITE ${CMAKE_BINARY_DIR}/m1.c void m1(void){}\n)
FILE(WRITE ${CMAKE_BINARY_DIR}/m2.c void m2(void){}\n)
FILE(WRITE ${CMAKE_BINARY_DIR}/m3.c void m3(void){}\n)
FILE(WRITE ${CMAKE_BINARY_DIR}/g.c void g(void){}\n)
ADD_EXECUTABLE(main main.c m1.c m2.c m3.c)
TARGET_LINK_LIBRARIES(main -L. f)
ADD_CUSTOM_COMMAND(TARGET main POST_BUILD
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_BINARY_DIR}/main.stamp)
GET_TARGET_PROPERTY(SOURCES main SOURCES)
STRING(REPLACE ; : SOURCES ${SOURCES})
ADD_CUSTOM_TARGET(invalidate ${CMAKE_COMMAND}
-DSOURCES=${SOURCES}
-DPREREQ=${CMAKE_BINARY_DIR}/libf.a
-DSTAMP=${CMAKE_BINARY_DIR}/main.stamp
-P ${CMAKE_SOURCE_DIR}/invalidate.cmake)
ADD_DEPENDENCIES(main invalidate)

# invalidate.cmake:
IF(${PREREQ} IS_NEWER_THAN ${STAMP})
STRING(REPLACE : ; SOURCES ${SOURCES})
FOREACH(i IN LISTS SOURCES)
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E touch ${i})
ENDFOREACH()
ENDIF()

The invalidate.cmake script - triggered by a custom target - touches
a bunch of source files if a prerequisite is newer than a stamp file.
The latter is generated along with the main executable, and the pre-
requisite is the external static library. Note that one cannot use
-DSTAMP=$TARGET_FILE:main as this would introduce a circular
dependency among the targets.

Regards,

Michael
--

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


Re: [CMake] Transitively including dependency source directories

2011-10-19 Thread Michael Hertling
On 10/14/2011 11:39 PM, Robert Dailey wrote:
 If I have the following target dependency chain:
 
 A  B  C  D
 
 Then target D must have the include directories (defined on a per project
 basis with a cache variable currently) for C, B, and A.
 
 Right now I'm trying to implement the logic for this myself using macro
 recursion, but as of right now I don't know of any way to get the list of
 target dependencies from a target. For example, if I query target C's
 dependencies, I should get a list back with just B in it. Then when I
 query for B's dependencies, I should get a list with A in it.
 
 I thought there might be a way to use get_target_property() for this, but
 doesn't seem so.
 
 How would you all recommend I go about this? Am I completely off base?
 
 Right now each target has a ${name}_INCLUDE_DIRS internal cache variable,
 which is a list of that target's include directories, so that if other
 targets specify it as a dependency, they also know how to get to that
 target's header files.

You might attribute an accumulative/transitive meaning to variables
like ${name}_INCLUDE_DIRS: A_INCLUDE_DIRS contains its own include
directories only, B_INCLUDE_DIRS contains its own directories *and*
A_INCLUDE_DIRS etc. Since each target usually knows on which other
targets it immediately depends, this setup should be quite possible.

Regards,

Michael
--

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


[CMake] Xcode4 and OpenMP

2011-10-19 Thread Kieran Parsons
I am having difficulty with enabling OpenMP on Xcode 4.0.2 (cmake 
2.8.6). I need to manually set the Enable OpenMP support build option 
(once I do everything is fine). I want to set this directly from 
CMakeLists.txt. I tried SET(CMAKE_XCODE_ATTRIBUTE_ENABLE_OPENMP_SUPPORT 
Yes) based on CMakeLists.txt found at 
https://github.com/thmxv/blender-ocio/blob/master/CMakeLists.txt


But this did not work (still need to manually set). I see the 
ENABLE_OPENMP_SUPPORT setting in the ALL_BUILD options, but under the 
specific target I still see No for the Enable OpenMP support.


Thanks.
--

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


Re: [CMake] tried to use pkgcpnfig to compile my project

2011-10-19 Thread Alexander Neundorf
On Wednesday 19 October 2011, David Boesner wrote:
 Hi
 
 I've tried to use pgkconfig to compile my project.
 I used this as an example:
 http://www.vtk.org/Wiki/CMake:How_To_Find_Libraries
 chapter 4.1
 
 I get the following Errormessage:
 
 fatal error: /gtk/gtk.h: Datei oder Verzeichnis nicht gefunden

I think including /gtk/gtk.h is not good, the preprocessor probably 
considers this an absolute path and doesn't search.

Try 
#include gtk/gtk.h

Alex
--

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


[CMake] Specify compiler flags for only one file

2011-10-19 Thread Renan Greinert
Hello everybody,

 

I have a simple Project like this:

 

 

set(PROJ_SOURCES

  main.cpp

  manager.cpp

  exceptionhandler.cpp

  sqlite3.c )

 

#and the following flags for visual studio

set(CMAKE_CXX_FLAGS  ${CMAKE_CXX_FLAGS} /EHsc /Oi /Ot /GF /GS- /W4)

 

The problem is that we want to compile with warnings level 4 (/W4), but we
have 3rd part files (sqlite3.c in the example) and it throws thousands of
warnings. So, only that file, I'd like to compile with /W0 param.

 

Is it possible to do that with CMake?

 

Thank you,

 

Renan Greinert

--

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

Re: [CMake] Specify compiler flags for only one file

2011-10-19 Thread Alexander Neundorf
On Wednesday 19 October 2011, Renan Greinert wrote:
 Hello everybody,
 
 
 
 I have a simple Project like this:
 
 
 
 
 
 set(PROJ_SOURCES
 
   main.cpp
 
   manager.cpp
 
   exceptionhandler.cpp
 
   sqlite3.c )
 
 
 
 #and the following flags for visual studio
 
 set(CMAKE_CXX_FLAGS  ${CMAKE_CXX_FLAGS} /EHsc /Oi /Ot /GF /GS- /W4)
 
 
 
 The problem is that we want to compile with warnings level 4 (/W4), but we
 have 3rd part files (sqlite3.c in the example) and it throws thousands of
 warnings. So, only that file, I'd like to compile with /W0 param.
 
 
 Is it possible to do that with CMake?

set_source_files_properties(... COMPILE_FLAGS ... ) should do it.

Alex
--

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


Re: [CMake] CDT generator - CDT 8.0.1 [Visual Studio compiler support]

2011-10-19 Thread Alexander Neundorf
On Wednesday 19 October 2011, Nicholas Yue wrote:
 On 19/10/11 10:20 AM, Alexander Neundorf wrote:
  Yes, this is currently only implemented for gcc and for the Intel
  compiler.
 
 I am noticing the indexer problem using the generated .cproject and
 .project using GCC on OS X too, I think the problem is not specific to
 Windows.

Which version of cmake are you using ?
If it's not 2.8.6, please verify that it still has the same problem with cmake 
2.8.6.

Alex
--

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


[CMake] CMakeEd has been updated

2011-10-19 Thread Michael Jackson
After a very long hiatus at updating the CMakeEd Eclipse plugin I have finally 
updated it to coincide with CMake version 2.8.6. The only thing that has 
changed is the documentation and the list of keywords/reserved words/cmake 
variables. No other new features have been added. 

Again, hopefully the next release will come around quicker.

http://cmakeed.sourceforge.net
___
Mike JacksonPrincipal Software Engineer
BlueQuartz SoftwareDayton, Ohio
mike.jack...@bluequartz.net  www.bluequartz.net

--

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


Re: [CMake] CMakeEd has been updated

2011-10-19 Thread James Sutherland
When updating I get this error:
   No repository found at http://cmakeed.sourceforge.net/updates




On Wed, Oct 19, 2011 at 2:38 PM, Michael Jackson 
mike.jack...@bluequartz.net wrote:

 After a very long hiatus at updating the CMakeEd Eclipse plugin I have
 finally updated it to coincide with CMake version 2.8.6. The only thing that
 has changed is the documentation and the list of keywords/reserved
 words/cmake variables. No other new features have been added.

 Again, hopefully the next release will come around quicker.

 http://cmakeed.sourceforge.net
 ___
 Mike JacksonPrincipal Software Engineer
 BlueQuartz SoftwareDayton, Ohio
 mike.jack...@bluequartz.net  www.bluequartz.net

 --

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

--

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

[CMake] CDT - source file references

2011-10-19 Thread Nicholas Yue
Hi,

  Using CMake 2.8.6 on Linux, I generated a CDT configuration in a different
directory from the source (out of source build?)

  The generated CDT configuration does not provide references within the
Eclipse IDE to those files (C++/headers) it is compiling. Is there some
CMake setting to trigger that ?

  I prefer out of source build for easier maintenance.

Regards
-- 
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
--

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

Re: [CMake] CDT - source file references

2011-10-19 Thread Nicholas Yue
Found the answer to my question here:

http://www.vtk.org/Wiki/Eclipse_CDT4_Generator

On 20 October 2011 09:40, Nicholas Yue yue.nicho...@gmail.com wrote:

 Hi,

   Using CMake 2.8.6 on Linux, I generated a CDT configuration in a
 different directory from the source (out of source build?)

   The generated CDT configuration does not provide references within the
 Eclipse IDE to those files (C++/headers) it is compiling. Is there some
 CMake setting to trigger that ?

   I prefer out of source build for easier maintenance.

 Regards
 --
 Nicholas Yue
 Graphics - RenderMan, Visualization, OpenGL, HDF5
 Custom Dev - C++ porting, OSX, Linux, Windows
 http://au.linkedin.com/in/nicholasyue




-- 
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
--

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

[CMake] CMAKE_MFC_FLAG not working in functions

2011-10-19 Thread Robert Dailey
I have a function defined very high up in the directory tree at the root
CMakeLists file. Several levels below it, I have another CMakeLists file
that I call that function from.

The function sets CMAKE_MFC_FLAG to 2. I notice that this flag gets ignored
when it is set inside of the function in question. If I set the flag outside
of the function, in the lowest level CMakeLists file, it works. This
property seems somehow tied to the directory itself, but I can't figure out
if this is a feature or a bug.

This behavior isn't very flexible as I'd like to make the details of
configuring an MFC compatible project transparent to the lower level
CMakeLists scripts. Hiding away the flag and how it needs to be set is a big
part of this, but I can't do it.

Anyone know how I can make this work?

-
Robert Dailey
--

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

Re: [CMake] CMakeEd has been updated

2011-10-19 Thread Michael Jackson
Looks like your update site has a typo in it. The update sites are:

http://master.dl.sourceforge.net/project/cmakeed/eclipse/
http://cmakeed.sourceforge.net/eclipse/

Try adding a new update site to your Eclipse and see if that solves it.
___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net 
BlueQuartz Software   Dayton, Ohio

On Oct 19, 2011, at 6:18 PM, James Sutherland wrote:

 When updating I get this error:
No repository found at http://cmakeed.sourceforge.net/updates
 
 
 
 
 On Wed, Oct 19, 2011 at 2:38 PM, Michael Jackson 
 mike.jack...@bluequartz.net wrote:
 After a very long hiatus at updating the CMakeEd Eclipse plugin I have 
 finally updated it to coincide with CMake version 2.8.6. The only thing that 
 has changed is the documentation and the list of keywords/reserved 
 words/cmake variables. No other new features have been added.
 
 Again, hopefully the next release will come around quicker.
 
 http://cmakeed.sourceforge.net
 ___
 Mike JacksonPrincipal Software Engineer
 BlueQuartz SoftwareDayton, Ohio
 mike.jack...@bluequartz.net  www.bluequartz.net
 
 --
 
 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://www.cmake.org/mailman/listinfo/cmake
 

--

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


[Cmake-commits] CMake branch, master, updated. v2.8.6-60-g173fb48

2011-10-19 Thread KWSys 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  173fb485f076089bca2aa4a7c9e2631e8c94a0b0 (commit)
  from  1b6c33f79874ce7c03c6895ea531472b7d89a4ed (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=173fb485f076089bca2aa4a7c9e2631e8c94a0b0
commit 173fb485f076089bca2aa4a7c9e2631e8c94a0b0
Author: KWSys Robot kwro...@kitware.com
AuthorDate: Thu Oct 20 00:01:04 2011 -0400
Commit: KWSys Robot kwro...@kitware.com
CommitDate: Thu Oct 20 00:08:06 2011 -0400

KWSys Nightly Date Stamp

diff --git a/Source/kwsys/kwsysDateStamp.cmake 
b/Source/kwsys/kwsysDateStamp.cmake
index 80902d5..a4c90e9 100644
--- a/Source/kwsys/kwsysDateStamp.cmake
+++ b/Source/kwsys/kwsysDateStamp.cmake
@@ -18,4 +18,4 @@ SET(KWSYS_DATE_STAMP_YEAR  2011)
 SET(KWSYS_DATE_STAMP_MONTH 10)
 
 # KWSys version date day component.  Format is DD.
-SET(KWSYS_DATE_STAMP_DAY   19)
+SET(KWSYS_DATE_STAMP_DAY   20)

---

Summary of changes:
 Source/kwsys/kwsysDateStamp.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