Re: [CMake] Static Linking C++ Library

2006-09-19 Thread Brad King
Mike Melanson wrote: Brad King wrote: This is not really a problem that a build system can solve directly. The native build tools need to be configured to support it. In order to link statically to the C++ runtime but dynamically to the C runtime and other libraries you need to configure

Re: [CMake] Static Linking C++ Library

2006-09-19 Thread Brad King
Mike Melanson wrote: Brad King wrote: You can link the entire program statically if you don't have any of your own shared libraries. Then running ldd myexe will produce a message that the executable is not dynamically linked. This requires just adding -static to CMAKE_EXE_LINKER_FLAGS

Re: [CMake] custom_command pre_build vs. post_build

2006-09-20 Thread Brad King
Richard Fuchs wrote: I've added some logging around each of our libraries that we build, but I'm getting an unexpected result. I'm using a custom command with the cmake -E echo to print a log out before and after a library is built. However, the results are not consistent. When we have

Re: [CMake] custom_command pre_build vs. post_build

2006-09-20 Thread Brad King
Richard Fuchs wrote: Ah, I see the note now. It's not in the section of the cmake book that describes the command, but it's in the command index in the back and on the web. So why does it work with the add_custom_target? It doesn't AFAIK. The custom rule specified by the custom target is

Re: [CMake] How to rename a target?

2006-09-20 Thread Brad King
Enrico Scholz wrote: does there exist a way to rename a target 'exe-foo' so that it is installed as 'bin/foo' finally? You can do this at build time before installing. See OUTPUT_NAME in SET_TARGET_PROPERTIES. -Brad ___ CMake mailing list

Re: [CMake] Re: TRY_COMPILE painful for tool testing

2006-09-20 Thread Brad King
Brandon J. Van Every wrote: I think the result is, quotes and backslashes cannot be reliably escaped with respect to macro wrappers for ADD_CUSTOM_TARGET. Thus it is not possible to write a macro that will TRY_COMPILE an arbitrary COMMAND. So the feature that I would like, is a TRY_COMMAND

Re: [CMake] A cmake-2.4.3 segfault that is caused by a circular chain of library dependencies

2006-09-21 Thread Brad King
Alan W. Irwin wrote: Today I inadvertently formed an unwanted circular chain of library dependencies with the target_link_libraries command, and as a result CMake segfaulted. [snip] [EMAIL PROTECTED] cmake ../test_cmake -- Check for working C compiler: gcc -- Check for working C compiler:

Re: [CMake] Re: TRY_COMPILE painful for tool testing

2006-09-21 Thread Brad King
Arjen Markus wrote: I am running into very similar problems with the Compaq Visual Fortran compiler on Windows: When CMake tests if this is an acceptable compiler, the generated makefile contains partly Windows-style paths (c:\...) and partly UNIX-style (c:/). Are you saying that

Re: [CMake] Extensionless Headers, and Non-compiled SOURCE_GROUP files

2006-09-21 Thread Brad King
Jacob Foshee wrote: Howdy, I'm helping out with the CMake build for OpenSceneGraph. OSG follows the standard practice of using extensionless headers for common interfaces. We would like all headers to show up in the project files (e.g. vcproj). For the SOURCE_GROUP command to work, the

Re: [CMake] [MISC] CMake support for enscript

2006-09-21 Thread Brad King
Tristan Carel wrote: Enscript highlightning system does not support CMake source files in the last version and Google told me anyone has written the required file `cmake.st'. So I made a very naive one Cool! Maybe this could be added to the CMake wiki. You're welcome to create a Wiki

Re: [CMake] Escaping $

2006-09-22 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Hi, I am trying to create FooConfig.cmake by having FooConfig.cmake.in and running CONFIGURE_FILE(FooConfig.cmake.in FooConfig.cmake) on it. In FooConfig.cmake.in, I have something like: SET(MY_LOCAL

Re: [CMake] Re: Cmake and CXX

2006-09-22 Thread Brad King
Xavier Larrode wrote: Filipe Sousa a écrit : On Friday 22 September 2006 08:15, Xavier Larrode wrote: Hello all, Cmake is using by default /usr/bin/c++ to compile project. Is it a way to set it ton another compiler like g++, or gcc-color. Thanks CXX=g++ CC=gcc cmake CMAKE_CXX_COMPILER

Re: [CMake] How to link libraries correctly?

2006-09-22 Thread Brad King
Enrico Scholz wrote: Hello, consider the following CMakeLists.txt file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/bar.c void foo() { }\n) file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/foo.c void bar() { }\n) add_library(foo SHARED ${CMAKE_CURRENT_BINARY_DIR}/foo.c) target_link_libraries(foo -lz

Re: [CMake] 3rd party modules

2006-09-22 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Thanks Brad. Let's say for project Foo and project Bar, I've created a FooConfig.cmake and BarConfig.cmake. Project Foo uses Cmake but Bar doesn't. During the installation, where should Foo and Bar place the Config.cmake so that

Re: [CMake] [Fwd: Re: [vtkusers] Re: Fwd: Re: Compiling VTK-5.0.2 with Cygwin make]

2006-09-22 Thread Brad King
David Cole wrote: CMake bug then...? Subject: Re: [vtkusers] Re: Fwd: Re: Compiling VTK-5.0.2 with Cygwin make From: Steve Robbins [EMAIL PROTECTED] [snip] FIND_PATH(OPENGL_INCLUDE_DIR GL/gl.h

Re: [CMake] Variables propagating upwards

2006-09-23 Thread Brad King
Lachlan Gunn wrote: Hi, I have been working on a project that makes use of CMake, and a problem has come up during the course of development. When I set a variable in a lower-level CMakeLists.txt file, it does not propagate upwards into the parent CMakeLists.txt file. Example:

Re: [CMake] The input line is too long (MinGW)

2006-09-23 Thread Brad King
Martin Dobias wrote: On 9/22/06, Brad King [EMAIL PROTECTED] wrote: I'll assume you're using the MSYS Makefiles generator. Please let me know if this is not the case. No, I'm using MinGW Makefiles generator. Now I've tried alse MSYS Makefiles generator and linking works correctly with both

Re: [CMake] correct way to pass CMake path variables to ADD_DEFINITIONS?

2006-09-25 Thread Brad King
Wojciech Jarosz wrote: I am writing a confidence test which needs to read some asset files. In order to tell the test where these files are located I do the following within the test's CMakeLists.txt: ADD_DEFINITIONS(-DRB_DATA_DIR=\${CMAKE_CURRENT_SOURCE_DIR}/\) Within the test code I then

Re: [CMake] Target properties, dependencies and subdirs order?

2006-09-25 Thread Brad King
Jeroen Janssen wrote: Hi, I have a question on the evaluation/creation of target properties in relation with dependencies. Example: topdir TestDll directory with interface/ and src/ TestExe directory with src/ TestExe has a dependency to TestDll (with add_dependency) Now

Re: [CMake] How to get current directory of the included files

2006-09-26 Thread Brad King
Eduard Bloch wrote: Hello, I need to add a certain variable and a set of strings in a set of applications, beeing in different paths. This is required because a static library is compiled with different settings, therefore the set of additional libraries varies. To avoid code duplication

Re: [CMake] 3rd party modules

2006-09-26 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Got it. Thank You. Now, there is another thing that I can't seem to find. If I have a Foo library with CMakeLists.txt: ADD_LIBRARY(Foo foo.cpp) then I have FooConfig.cmake for it: SET(FOO_LIBRARY

Re: [CMake] Finding libs/headers on MSYS/MinGW

2006-09-27 Thread Brad King
Kai Sterker wrote: But cmake cannot find the headers, (or libraries in /usr/local/lib), because it does know nothing about the UNIX-like structure of MSYS. So the problem is not that there is something wrong when running cmake from a MSYS shell instead of a Windows command prompt. It behaves

Re: [CMake] 3rd party modules

2006-09-29 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Thanks Brad. So for those two lines: SET(CMAKE_DEBUG_POSTFIX Debug) GET_TARGET_PROPERTY(LIBNAME Foo LOCATION) Should I get? prefix/lib/libfooDebug.a I am getting (no 'Debug'): prefix/lib/libfoo.a but

Re: [CMake] 3rd party modules

2006-09-29 Thread Brad King
Brad King wrote: Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: That didn't do it. This is what I am doing: ADD_LIBRARY(Foo foo.cpp) SET_TARGET_PROPERTIIES(Foo PROPERTIES DEBUG_POSTFIX Debug) GET_TARGET_PROPERTY(LIBNAME Foo LOCATION) I am still getting libfoo.a

Re: [CMake] -fPIC flag on object build for static lib targets?

2006-10-02 Thread Brad King
James Mansion wrote: Are you trying to link object files compiled without -fPIC into a shared library? That would never work; -fPIC is required for all objects in shared libraries. I'm guessing so - I want to do it too! Or rather, be able to make a static library containing objects that

Re: [CMake] Testing whether a variable has already been assigned a non-null value

2006-10-02 Thread Brad King
Alan W. Irwin wrote: I have noticed tests like IF(${VARIABLE} MATCHES ^${VARIABLE}$) in, e.g., CheckFunctionExists.cmake where VARIABLE is a macro argument. From the context I assume it is a test for whether the actual variable used in the macro call has been assigned a non-null value,

Re: [CMake] INSTALL( COMPONENT

2006-10-02 Thread Brad King
Filipe Sousa wrote: I don't understand how COMPONENT works. From the INSTALL manual the COMPONENT argument specifies an installation component name with which the install rule is associated, such as runtime or development. During component-specific installation only install rules associated

Re: [CMake] Success with Compaq Visual Fortran - at least some!

2006-10-03 Thread Brad King
Arjen Markus wrote: SET(CMAKE_WINDOWS_OBJECT_PATH 1) While it worked with my small test project (single file, single language), it fails with PLplot: the setting gets in the way of the detailed tests on the capacities of the C compiler. I get error messages about the incorrect use of

Re: [CMake] How Do I make a Custom Rule.

2006-10-03 Thread Brad King
Peter Kahn wrote: What is the right pattern to use in cmake to create a custom rule for converting a bunch of files? In make I can define a custome rule for file types. What is the right way to do this in cmake? I can create a macro, but I'm unsure how to properly connect it

Re: [CMake] CMakeDetermineSystem.cmake

2006-10-03 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Is there a module like CMakeDetermineSystem.cmake that would tell the specific Linux distribution and architecture that compilation is running on? I would like to use it to attach it to package name generated by CPack. There is

Re: [CMake] Relinking before installing

2006-10-03 Thread Brad King
Andrew Maclean wrote: In Linux, is it possible to relink libraries before installation? For instance if I have built with shared libraries on and CMAKE_SKIP_RPATH OFF then I have runtime paths in the shared libraries. When I finally decide to install a version for system-wide use (not

Re: [CMake] Copying matching files

2006-10-03 Thread Brad King
Hugo Costelha wrote: I need to copy all files that match a certain patter during compilation time. I am currenlty using the following in CMakeLists.txt: FILE(GLOB luts lut*) FOREACH(file ${luts}) GET_FILENAME_COMPONENT(basename ${file} NAME) ADD_CUSTOM_TARGET( luts ALL

Re: Fwd: Re: [CMake] Copying matching files

2006-10-03 Thread Brad King
Hugo Costelha wrote: On Tuesday 03 October 2006 16:07, you wrote: You can add a custom target that runs cmake -P myscript.cmake and then put the glob/copy code in the script. In the script use EXECUTE_PROCESS to call cmake -E copy in a FOREACH on the result of the glob. Thanks for the

Re: [CMake] Success with Compaq Visual Fortran - part 2

2006-10-03 Thread Brad King
Arjen Markus wrote: for reasons I do not understand (*) the error messages I reported earlier after setting CMAKE_WINDOWS_OBJECT_PATH to 1 have vanished. The project's makefiles can now be generated by CMake. In fact make begins to build the C libraries and the FORTRAN 77 libraries, but

Re: [CMake] Copy includes + Library config

2006-10-04 Thread Brad King
Pablo Odorico wrote: How can I use cmake to copy the library headers in a portable way? (eg: /usr/include/pgl/*.h in linux) Is there a way to run ldconfig after make install so the library can be used right away? Will that affect the install in a non-unix OS? Look at the INSTALL

Re: CMake FAQ updates (Was Re: [CMake] -fPIC flag on object build for static lib targets?)

2006-10-04 Thread Brad King
Warren Turkal wrote: On Monday 02 October 2006 08:38, Brad King wrote: http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake_support_.22convenience.22_li There are some references to 2.2 being the current release and having to use the current development for some features. Presumably, this info

Re: [CMake] Building the same library with different defines

2006-10-04 Thread Brad King
Patrick J. Franz -- ML wrote: I'm a fairly new CMake user, so I apologize in advance if this question is answered trivially elsewhere. I searched through the docs and Google already to no avail. In a project I am working on, I need to build our Win32 libraries in both cdecl and stdcall

Re: [CMake] SubDirs and Libraries

2006-10-04 Thread Brad King
Peter Kahn wrote: What is the standard way of having cmake access libaries built on the same subdir level? I have a project with two subdirs: Util and App. Util builds a library called 'utillib'. Ap builds a library and an exe (aplib, and ap.exe). Main\ CMakeLists.tst

Re: [CMake] issue with INSTALL and CMAKE_INSTALL_PREFIX

2006-10-05 Thread Brad King
Xavier Delannoy wrote: SET(CMAKE_INSTALL_PREFIX $ENV{DESTDIRPREFIX}) MESSAGE(STATUS CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) INSTALL(TARGETS nbase_shared DESTINATION /usr/Firewall/lib) [snip] /home/xavierd/tempbuild/firmware/lib/libnbase/shared/cmake_install.cmake:30: FILE cannot create

Re: [CMake] ADD_CUSTOM_COMMAND problem with cmake 2.4.3

2006-10-05 Thread Brad King
Gregor Berginc wrote: Dear all, yesterday I faced wierd behaviour of the newest cmake. Before, I was using cmake version 2.4-patch 2 and the following command executed successfully: = ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${cpp_class}.h COMMAND ${JAVAH_RUNTIME}

Re: [CMake] ADD_CUSTOM_COMMAND problem with cmake 2.4.3

2006-10-05 Thread Brad King
Alexander Neundorf wrote: Original-Nachricht Datum: Thu, 5 Oct 2006 09:53:37 +0200 Von: Gregor Berginc [EMAIL PROTECTED] What has changed since patch 2 version? Is this a bug or just my bad interpretation of ADD_CUSTOM_COMMAND and cmake variables? You need to add the

Re: [CMake] SubDirs and Libraries

2006-10-05 Thread Brad King
James Mansion wrote: I think you need a dependency declaration too don't you? I've seen VStudio 2k3 build out of order without. # App/CMakeLists.txt ADD_EXECUTABLE(myexe ...) TARGET_LINK_LIBRARIES(myexe mylib) It seems actually a little more complicated in practice because you

Re: [CMake] select debug or optimized at make time instead of at cmake time

2006-10-06 Thread Brad King
Richard Fuchs wrote: Is there a way to be able to select if the build will be debug or optimized at make time instead of during cmake time? So, I can SET(CMAKE_BUILD_TYPE Debug) or SET(CMAKE_BUILD_TYPE Release) for debug or optimized code respectively, then when I run make, the

Re: [CMake] how to set environment variable when executing process

2006-10-06 Thread Brad King
frederic heem wrote: Hi, In some FindXXX.cmake, pkgconfig is used to locate include directories libraries, definitions etc. I would like to set the environment variable PKG_CONFIG_PATH to $MYLIBDIR:$PKG_CONFIG_PATH, hence pkg-config will look first for $MYLIBDIR/mylib.pc EXECUTE_PROCESS

Re: [CMake] CMake generated makefiles try to build a target that does not exist (make[2]: *** No rule to make target ...)

2006-10-06 Thread Brad King
Bill Tonkin wrote: The short story is that the CMake generated makefiles try to build a target that seems to exist, but with a slightly different name. make[2]: *** No rule to make target `../../libraries/my_a/CMakeFiles/my_a.di r/build'. [snip] The content of CMakeLists.txt [1] is:

Re: [CMake] Building a Debug Project against a Release VTK

2006-10-09 Thread Brad King
Mike Jackson wrote: I just tried to have CMake generate a debug build of my project but when cmake ran it gave me the warning that Cmake was forcing my build type to Release since that is what VTK was built with. I _understand_ the error. What I need to know is if there is a way to actually

Re: [CMake] add dependencies to clean target ?

2006-10-09 Thread Brad King
frederic heem wrote: It seems that it's not possible to add dependencies to implicit target such as clean and package_source. The user defined target FsmCompilerClean must be called whenever the target clean is used. [snip] # fails here ADD_DEPENDENCIES(clean FsmCompilerClean) The clean

Re: [CMake] Install Prefix and RPM

2006-10-10 Thread Brad King
Helio Chissini de Castro wrote: Hi everyone Is there an easy way to make a different install prefix durong the install phase, most directed for RPM construction ( like the old DESTDIR on auto*tools ) ? I have a code that during build parse and substitute de real install prefix, and if i

Re: [CMake] INCLUDE_DIR or INCLUDE_DIRS?

2006-10-10 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: I am looking at the readme.txt file in CMake's modules directory. It says: Please use the following consistent variable names for general use. XXX_INCLUDE_DIRS ... You do not have to provide all of the above variables. You should

Re: [CMake] How to set Install_name on OS X

2006-10-10 Thread Brad King
Mike Jackson wrote: I am attempting to set the install_name on OS X for Shared Libraries but the solution that I _thought_ would work does not because somewhere in cmake the linker flag -install_name is _already_ defined and so adding another one just confuses the linker. Is there some way

Re: [CMake] Preserving directory structure with INSTALL(...)

2006-10-10 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Is this part of CMake 2.4.3? I get this error: INSTALL called with unknown mode DIRECTORY It is in CVS CMake. It will be in 2.4.4. -Brad ___ CMake mailing list CMake@cmake.org

Re: [CMake] Setting global link flags

2006-10-11 Thread Brad King
Axel Roebel wrote: I frequently struggle with the problem to set global linker flags. Global here means these flags should be used whenever the linker is used. The main example where I need that is the -mno-cygwin flag of the cygwin compiler. This flag creates objects that will not make use

Re: [CMake] Building generated c++ code with py++ and boost.python

2006-10-11 Thread Brad King
Pecevski Dejan wrote: Hi, As part of our build process which uses cmake, we want to generate wrapper c++ files from existing sources, for python interfacing (using Py++ and boost.python). The dependency we want to achieve is : A1.cpp A2.cpp A3.cpp A1.h A2.h A3.h ... - Abase.h

Re: [CMake] MACOSX_DEPLOYMENT_TARGET

2006-10-11 Thread Brad King
Axel Roebel wrote: The problem is that to my knowledge the only way to communicate the deployment target to gcc is via environment variables. I admit this is a really strange way (probably its save to say silly) to select compiler options, but as far as I know, this is the way it is done in

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Brad King
Mike Jackson wrote: On 10/10/06 4:56 PM, Brad King [EMAIL PROTECTED] wrote: Mike Jackson wrote: On 10/10/06 4:08 PM, Brad King [EMAIL PROTECTED] wrote: cmake --help-command SET_TARGET_PROPERTIES OK.. Reading all the output from that command there seems to be some mutually exclusive

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Brad King
Mike Jackson wrote: On 10/10/06 4:56 PM, Brad King [EMAIL PROTECTED] wrote: SET_TARGET_PROPERTIES (DislocationIO PROPERTIES BUILD_WITH_INSTALL_RPATH 1 INSTALL_NAME_DIR @executable_path/../PlugIns ) Okay, there was a bug in the code that computes the final value

Re: [CMake] Component-based FindSDL.cmake

2006-10-11 Thread Brad King
Pablo Odorico wrote: Some questions now: - Can't QUIET be used with components? The entire find is either quiet or not. - _all_ components have to be REQUIRED? The component syntax is just a list of components that are requested. You can interpret it however you wish in the Find module.

Re: [CMake] How to set Install_name on OS X

2006-10-11 Thread Brad King
Mike Jackson wrote: Thanks for the fix. I look forward to the next release of Cmake. BTW, when is the next release? When it's ready. -Brad ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to check/set CMAKE_INSTALL_PREFIX

2006-10-17 Thread Brad King
Alexander Neundorf wrote: Original-Nachricht Datum: Mon, 16 Oct 2006 14:02:28 -0400 Von: Brad King [EMAIL PROTECTED] An: Eric Noulard [EMAIL PROTECTED] Betreff: Re: [CMake] How to check/set CMAKE_INSTALL_PREFIX Eric Noulard wrote: What is the good way to change

Re: [CMake] Can't use Boost ??

2006-10-17 Thread Brad King
Matthieu Brucher wrote: Hi, I'm trying to use Boost in my applications. On Windows, no problem, it can now find the good headers and libraries thank to FindBoost.cmake. On Linux, on FC5 or on Debian testing, I have cmake 2.4-patch3, with the FindBoost.cmake file, but when I launch cmake, i

Re: [CMake] Strange behaviour on install

2006-10-17 Thread Brad King
Brad King wrote: Helio Chissini de Castro wrote: INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/providers.xml DESTINATION /opt/fdo ) INSTALL( CODE MAKE_DIRECTORY\( /opt/fdo/Repositories/Library/DataFiles\) ) [snip] MAKE_DIRECTORY is just a CMake command and knows nothing of installation

Re: [CMake] Forcing vc guiids to be the same

2006-10-18 Thread Brad King
Matthew Campbell wrote: I was wondering if there was any way to instruct cmake to generate the same guid’s for Microsoft projects and solution files? We would like to have the option of putting the solutions and projects in source control but this poses a problem since the guids are

Re: [CMake] Could somebody please explain how caching works with NOTFOUND variables?

2006-10-18 Thread Brad King
Alan W. Irwin wrote: Are FALSE variable values such as SWIG_DIR-NOTFOUND allowed to be overwritten by FIND_PATH even though they are cached from a previous FIND_PATH call? Is there a general rule I can use to always predict the results of trying to overwrite variables that have been cached

Re: [CMake] Could somebody please explain how caching works with NOTFOUND variables?

2006-10-19 Thread Brad King
Alan W. Irwin wrote: I suggest this important additional caching rule concerning the FIND_xxx commands should be stated prominently in the principal documentation that is obtained by running the cmake --help-full command. To be fair, somewhere in the Wiki (I have lost the exact reference) I

Re: [CMake] Removing unused variables from the cache

2006-10-19 Thread Brad King
Sylvain Benner wrote: I don't know if this is possible but you can set your variable to an empty string. SET( SOME_OPTION ) Is it possible to remove variables from the cache ? For example: OPTION( BUILD_X Descr OFF ) IF ( BUILD_X ) SET( SOME_OPTION Hello world CACHE) ELSEIF

Re: [CMake] Eval/Exec of a string

2006-10-19 Thread Brad King
Benjamin THYREAU wrote: Does someone know of a way to execute some cmake code contained in a string variable ? Something like INCLUDE, but working from a string instead of a file. There is no language feature for this. You could try using CONFIGURE_FILE to write the string to a file and

Re: [CMake] cmake segfaults with ASM compiler

2006-10-19 Thread Brad King
Prakash Punnoor wrote: Hi, if I use Windows cmake 2.4.x (x in 0 to 3) in MSYS/MinGW with MSYS (in Windows XP SP2 Ger) it segfaults with my custom Module for ASM compiler integration (perhaps you remember...). It starts segfaulting at generation time as soon as I add a file with an asm

Re: [CMake] ctest with SSL?

2006-10-19 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Is there a way to enable SSL in CTest? When I use 'https' URL, I get curl_easy_perform() says: libcurl was built with SSL disabled[...] I've just committed changes to support building CMake against a system-installed curl. See this

Re: [CMake] Removing unused variables from the cache

2006-10-20 Thread Brad King
Peter Soetens wrote: Quoting Brad King [EMAIL PROTECTED]: If BUILD_X is on and SOME_OPTION is set by the user, then BUILD_X is turned off, and then back on the user may expect SOME_OPTION to have retained its value. You can convert it to an INTERNAL cache entry so that it does not show up

Re: [CMake] Setting the cmake compiler...

2006-10-20 Thread Brad King
Peter Soetens wrote: The following happened to me (cmake version 2.4-patch 2) : $ mkdir build $ cd build $ cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CC_COMPILER=gcc -- Check for working C compiler: gcc -- Check for working C compiler: gcc -- works -- Check size of void* -- Check size of

Re: [CMake] CMake performance question

2006-10-20 Thread Brad King
Alexander Neundorf wrote: #16: the line is parsed and a vector containing the arguments is created, which is handed the cmSetCommand. This turns the vector into a string. #17: the line is parsed, ${srcs} is expanded to the string in srcs and parsed again into a vector. #08: it evaluates to

Re: [CMake] Disable optimizations for an individual project

2006-10-23 Thread Brad King
Reggie Burnett wrote: What’s the best approach to disabling optimizations for a particular project? We still want to use release settings just with optimizations turned off and then just for that single project. Unfortunately there is no good approach for this right now. You can try removing

Re: [CMake] FIND_LIBRARY problem

2006-10-23 Thread Brad King
Abe Stephens wrote: I have a CMake build for a project. The project contains several directories (included with the SUBDIRS command). One of these directories has the same name as a library that I search for using FIND_LIBRARY. For some reason, cmake returns the path to this subdirectory

Re: [CMake] Error detecting sun studio compiler under linux

2006-10-23 Thread Brad King
Doug Henry wrote: I am trying to use the sun studio compiler under linux and I am having a terrible time getting past the cmake compiler tests. I'm not sure what the error messages are telling me, but it looks like some incorrect flags are being passed in. I extracted the short test program

Re: [CMake] if( defined xxx ) does not work as (I) expected

2006-10-25 Thread Brad King
Michael Hufer wrote: --- [...] if( DEFINED ${EXT_LINK_FLAGS} ) message( module ${EXT}: adding the linker flags '${EXT_LINK_FLAGS}' ) set_target_properties( ${MODULE} PROPERTIES LINK_FLAGS ${EXT_LINK_FLAGS} ) endif( DEFINED ${EXT_LINK_FLAGS} ) [...] --- which is only written

Re: [CMake] Error detecting sun studio compiler under linux

2006-10-25 Thread Brad King
Doug Henry wrote: Looks like I may have missed a couple options (-R and -KPIC). As far as I can tell, the compiler should work exactly like the already supported SunOS version of the compiler. Just copy the options from the already included SunOS.cmake file, which are almost the same as the

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Brad King
Doug Henry wrote: I noticed that the default options for build mode may be a bit strange for sun compilers. The release mode uses -xO2 and the minimum size mode uses -xO3 (higher optimization level?). There seems to be an option -xspace which reads: -xspace Do not do

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Brad King
Doug Henry wrote: Before I commit anything, I would like to verify how cmake is doing its compiler detection. Is everything simply based on name? I can have cc in my path which is gcc, or I can set my path in a way that has cc from sun studio. Is cmake capable of telling the difference? I

Re: [CMake] INSTALL files

2006-10-26 Thread Brad King
Gregor Berginc wrote: I am writting cmake file to build library libVisionComponents that includes sources from subdirectories (each subdir is different component). In the main cmake file, sources and headers are listed as ComponentName/File.cpp. The library is compiled successfully, but when

Re: [CMake] [SUBVERSION] Retrieve details of your working copy

2006-10-26 Thread Brad King
Tristan Carel wrote: To use it: ### Extract information from the current subversion working copy INCLUDE(UseSubversion.cmake) IF(SUBVERSION_SVN_FOUND) SUBVERSION_REPOSITORY(${PROJECT_SOURCE_DIR}) ENDIF(SUBVERSION_SVN_FOUND) This looks like a nice module. You should be able to convert it

Re: [CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-26 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Sounds like CMAKE_MODULE_PATH suggested by Alan wouldn't do the trick. Will this change make it for CMake 2.4.4? I'm not sure about 2.4.4. You can check the documentation of the FIND_PACKAGE command when it comes out. It will

Re: [CMake] [SUBVERSION] Retrieve details of your working copy

2006-10-26 Thread Brad King
Tristan Carel wrote: In Modules/readme.txt, in the list of variables to provide, I can read: --- XXX_EXECUTABLE Where to find the XXX tool. XXX_YYY_EXECUTABLE Where to find the YYY tool that comes with XXX. --- Subversion is a set of

Re: [CMake] [SUBVERSION] Retrieve details of your working copy

2006-10-26 Thread Brad King
Tristan Carel wrote: RC1 in attachment. That looks pretty nice. Here are a few comments: 1.) Please change EXEC_PROGRAM to EXECUTE_PROCESS. You can use the new OUTPUT_STRIP_TRAILING_WHITESPACE option in CVS CMake's EXECUTE_PROCESS to avoid extra newlines. Since the module will not be

Re: [CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-27 Thread Brad King
Alan W. Irwin wrote: I think the real problem here is the documentation of FIND_PACKAGE needs updating. [snip] The meaning of the phrase another project built by CMake is not clear. I cannot believe that is some arbitrary project somewhere on the net. Even if it is is another project built

Re: [CMake] How to easily extract items from a list which match a regex?

2006-10-27 Thread Brad King
Tristan Carel wrote: To extract the list of headers in a set of source files contained in a variable, I don't see other solution than iterate on each element and check that the items match the regular expression: You can submit a feature request for LIST(FILTER) here: http://www.cmake.org/Bug

Re: [CMake] ADD_CUSTOM_COMMAND in different CMakeLists.txt

2006-10-27 Thread Brad King
Maik Beckmann wrote: If I put the add_custom_command into Project_dir/mydir/CMakeLists.txt everything works fine. Is this a limitation of cmake? Yes. Custom commands are considered on a per-directory basis when looking for source files. Also note that your example command modifies the source

Re: [CMake] [SUBVERSION] Retrieve details of your working copy

2006-10-27 Thread Brad King
Tristan Carel wrote: now the RC2 That looks good. Thanks for making the changes. Please open a feature request here: http://www.cmake.org/Bug and attach the lateset revision of the file. Send me the bug number please. Then I'll do the final testing and integration into CMake upstream.

Re: [CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-27 Thread Brad King
Alan W. Irwin wrote: A module that gives header and library information for a package does sound most useful, and, in fact, we could use that kind of module for the PLplot project (especially if the module is automatically generated from the install information that CMake already has access

Re: [CMake] Are target dependencies always processed before file dependencies for custom targets?

2006-10-31 Thread Brad King
Alan W. Irwin wrote: I have the following situation: One subdirectory has a complicated target build (a library). Another subdirectory has a custom command which only works if the library is built first. I know of no way to directly get a custom command to depend on a target. The

Re: [CMake] removing a target from the all target

2006-10-31 Thread Brad King
Axel Roebel wrote: I wonder whether anybody sees a simpler solution to the problem, like a simple target property that will remove the traget from the list of targets linked to the all target. In CMake from CVS and in the upcoming 2.4.4 release you can do ADD_EXECUTABLE(myexe

Re: [CMake] syntax error, unexpected cal_SYMBOL, expecting $end......

2006-10-31 Thread Brad King
Benjamin Roy wrote: DOT_PATH = ${DOT_PATH} Try using the syntax DOT_PATH = @DOT_PATH@ and the @ONLY option of CONFIGURE_FILE. This should get rid of the error. However a separate problem is that CMake should have reported a better error in the first place.

Re: [CMake] [ANN] New PkgConfig module

2006-11-01 Thread Brad King
Maik Beckmann wrote: Hello I would like to discuss three points 1. naming conventions 2. what if pkg-config sends an error 3. protect already defined variables Another approach to this problem is to setup the pkgconfig macros so they can be used by Find*.cmake modules. When a user

Re: [CMake] PATH_SUFFIXES doesn't work on x86_64

2006-11-01 Thread Brad King
Orion Poplawski wrote: This is apparently because when the suffixes are added to the search list in cmFindBase they are checked for existence before the lib-lib64 mapping is done and since /usr/lib/octave-2.9.9 doesn't exist, it doesn't add it to the search. I'd vote for just removing the

Re: [CMake] DLL not found question

2006-11-01 Thread Brad King
Jacob Foshee wrote: Perhaps if Find3rdParty.cmake or 3rdPartyConfig.cmake advertised a 3rdParty_BIN_DIR or 3rdParty_RUNTIME_DIR this would help? I could try writing a FIND_RUNTIME_LIBRARY macro if that would help. Some project's modules already do export a FOO_RUNTIME_LIBRARY_DIRS variable

Re: [CMake] Re: [ANN] New PkgConfig module

2006-11-01 Thread Brad King
Maik Beckmann wrote: Brad mentioned using _ as a prefix should be enough. But what about module authors who uses other modules? The modules may _-prefix the same variable name, i.e. _to. In that case you should just use the verbose prefix. This is why we call them MACROs and not functions.

Re: [CMake] Studio 8 generation of files doesn't use CMAKE_CXX_FLAGS?

2006-11-01 Thread Brad King
Clinton Chau wrote: In order to change the compiler options, and to submit additional preprocessor defines, I have ended up having to modify the CMAKE_CXX_FLAGS property in the CMakeLists.txt in the root of the project. Am I just not understanding how CMake works, since I am new to using

Re: [CMake] Setting the C dialect

2006-11-01 Thread Brad King
Filipe Sousa wrote: Mattias Holm wrote: Hi there, I am new to the list, so excuse me if this has been asked before. I am trying to figure out if there is a good way of setting the language dialect that you are using. For example, I am working with a project written in C99, and thus I

Re: [CMake] Studio 8 generation of files doesn't use CMAKE_CXX_FLAGS?

2006-11-01 Thread Brad King
Clinton Chau wrote: You're right, that property is being set in the CMakeList.txt file. Given this, how should you make CMAKE_CXX_FLAGS available to the user for modification in CMakeSetup.exe, without setting the value in CMakeLists.txt? That is, I always want the user to be able to

Re: [CMake] cache variable prevents FIND_LIBRARY to be called again :/

2006-11-01 Thread Brad King
Tristan Carel wrote: Hi, The documentation of `FIND_LIBRARY' specify: Once one of these calls succeeds the result variable will be set and stored in the cache so that neither call will search again. Is there a way to avoid this behavior? I've got a FIND_LIBRARY whose search locations

Re: [CMake] remove filename line when building under windows

2006-11-08 Thread Brad King
Yann Renard wrote: is it possible to remove the line containing the compiled filename under windows (MS visual studio 8) ? this line is printed by cl I imagine but cmake already informs about the built file. this is not clean in my opinion. To my knowledge this is not possible. We have to

<    5   6   7   8   9   10   11   12   13   14   >