Re: [CMake] Applying command to source files

2007-11-16 Thread Juan Sanchez
If I remember the original intent, I thought the desire was to enforce some draconian indenting policy. Shouldn't that be a script in your source code management tool? For example, the indentation policy will be enforced the moment the file is checked in. Juan Eric Noulard wrote: > 2007/11/15,

Re: [CMake] Applying command to source files

2007-11-16 Thread Juan Sanchez
Eric Noulard wrote: > 2007/11/16, Juan Sanchez <[EMAIL PROTECTED]>: >> If I remember the original intent, I thought the desire was to enforce >> some draconian indenting policy. > > Draconian :=) > Not really I'll consider this "homogeneous" in order

Re: [CMake] Applying command to source files

2007-11-16 Thread Juan Sanchez
James Bigler wrote: >> Eric Noulard wrote: >>> 2007/11/16, Juan Sanchez <[EMAIL PROTECTED]>: >>> >>>> Shouldn't that be a script in your source code management tool? For >>>> example, the indentation policy will be enforced the momen

Re: [CMake] CMake with Lua Experiment

2007-11-26 Thread Juan Sanchez
Brandon Van Every wrote: > On Nov 26, 2007 1:18 PM, Ken Martin <[EMAIL PROTECTED]> wrote: >> >> Just heading down this path as an experiment to get a better feel for it. >> Posted a snapshot of the source code on the Wiki >> http://www.cmake.org/Wiki/CMake:Experiments_With_Lua The biggest issues I

Re: [CMake] CMake with Lua Experiment

2007-11-27 Thread Juan Sanchez
t; Now I'll see if we can get rid of all those pointless quotes. > > It doesn't look possible. That's annoying. How about? cm_add_library{"simpleLib STATIC simpleLib.cxx simpleCLib.c simpleWe.cpp"} Regards, Juan > > > Cheers, > Brandon Van Every > ___ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake > > -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake with Lua Experiment

2007-11-27 Thread Juan Sanchez
Alexander Neundorf wrote: > On Tuesday 27 November 2007, Juan Sanchez wrote: > ... >> How about? >> >> cm_add_library{"simpleLib STATIC simpleLib.cxx simpleCLib.c simpleWe.cpp"} > > Are you sure putting it all in one quoted string will make getting the &

Re: [CMake] CMake with Lua Experiment

2007-11-27 Thread Juan Sanchez
Brandon Van Every wrote: > On Nov 27, 2007 3:22 PM, Juan Sanchez <[EMAIL PROTECTED]> wrote: >> How about? >> >> cm_add_library{"simpleLib STATIC simpleLib.cxx simpleCLib.c simpleWe.cpp"} > > That paradigm is crippled with respect to FOREACH and L

Re: [CMake] CMake will not be able to correctly generate this project.

2008-01-03 Thread Juan Sanchez
' >> gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] >> Error 1 >> gmake: *** [cmTryCompileExec/fast] Error 2 >> >> >> CMake will not be able to correctly generate this project. >> -- Configuring done >> >> >> Can a

Re: [CMake] CMake will not be able to correctly generate this project.

2008-01-03 Thread Juan Sanchez
__ >> CMake mailing list >> CMake@cmake.org >> http://www.cmake.org/mailman/listinfo/cmake > > ___ > CMake mailing list > CMake@cmake.org > http://www.cmake.or

Re: [CMake] [EXTERNAL] Re: Linking to boost on OS X 10.12

2019-02-05 Thread Juan Sanchez
Hello, Are you able to use BUILD_WITH_INSTALL_RPATH: https://cmake.org/cmake/help/v3.13/prop_tgt/BUILD_WITH_INSTALL_RPATH.html https://cmake.org/cmake/help/v3.13/prop_tgt/INSTALL_RPATH.html#prop_tgt:INSTALL_RPATH Regards, Juan On Tue, Feb 5, 2019 at 4:00 PM Stephens, J. Adam via CMake wrote:

Re: [CMake] [EXTERNAL] Re: Linking to boost on OS X 10.12

2019-02-06 Thread Juan Sanchez
suggestion. > > > > -- > > J. Adam Stephens, Ph.D. > > Dakota Support Analyst > > https://dakota.sandia.gov/ > > Optimization and UQ > > Sandia National Laboratories > > Albuquerque, NM > > > > > > *From: *Juan Sanchez > *Date: *Tue

Re: [CMake] How to use Ninja on Windows with MSVC?

2019-05-22 Thread Juan Sanchez
On Wed, May 22, 2019 at 10:27 AM Michael Jackson < mike.jack...@bluequartz.net> wrote: > Do this all the time both for our CDash nightlies and when I am developing > on Windows. The essential pieces of the puzzle are the following: > > 1: Ninja needs to be on your path > 2: The compilers need to b

Re: [CMake] Question about getting git branch name.

2019-06-10 Thread Juan Sanchez
Hello, https://stackoverflow.com/questions/1417957/show-just-the-current-branch-in-git suggests: git rev-parse --abbrev-ref HEAD Regards, Juan On Sat, Jun 8, 2019 at 5:25 PM Steven Truppe wrote: > Hi everyone, > > i want to have code lines like: > > #define BUILD_VERSION > > and the BUILD_

Re: [CMake] How to specify Redhat Developer Toolset compiler?

2019-06-20 Thread Juan Sanchez
Hello, I use a bash script, like this for devtoolset-6. https://github.com/devsim/devsim/blob/master/scripts/setup_centos_6.sh Regards, Juan On Thu, Jun 20, 2019 at 10:39 AM David Aldrich wrote: > My Centos 7.6 machine has CMake 3.13.5 and g++ 4.8.5 installed: > > $ /usr/bin/x86_64-redhat-l

Re: [CMake] Setting RPATH lookup on macOS

2019-09-12 Thread Juan Sanchez
The macOS install_name_tool can be used to change the RPATH of your binaries. It can also be used to set the path for each of the libraries to be loaded. For a python module I compile, I copy each of its dylib into the appropriate directory relative to my shared library. I then use the install_n

Re: [CMake] Setting RPATH lookup on macOS

2019-09-12 Thread Juan Sanchez
PATH of the executable/library. (at least on > macOS & Linux systems). > > > > -- > > Mike Jackson > > > > > > From: Juan Sanchez > Date: Thursday, September 12, 2019 at 11:35 AM > To: Michael Jackson > Cc: CMake > Subject: Re: [CMake] Settin

Re: [CMake] system runtime library file does not exist (warning)

2019-09-17 Thread Juan Sanchez
Hello, Somewhat related to your issue, is that newer versions of the Intel MKL are now free for use: https://software.intel.com/en-us/articles/free-ipsxe-tools-and-libraries Free Intel Performance Libraries for *Everyone* *Free for all, no

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Juan Sanchez
Hello, My impression that targeting 32 bit depends on what generator you are using. https://cmake.org/cmake/help/git-stage/generator/Visual%20Studio%2015%202017.html It looks like cmake now has: - cmake -G "Visual Studio 15 2017" -A Win32 - cmake -G "Visual Studio 15 2017" -A x64 It used

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Juan Sanchez
ors occurred! > See also > "C:/Users/jpabreu/Desktop/testCMAKE/build/CMakeFiles/CMakeOutput.log". > ``` > > Em ter, 17 de set de 2019 às 14:00, Juan Sanchez > escreveu: > >> Hello, >> >> My impression that targeting 32 bit depends on what generator you are

Re: [CMake] Single library with both shared and static binaries

2019-09-26 Thread Juan Sanchez
Here is an example where two libraries are created from object files that have only been compiled once: ADD_LIBRARY(symdiff_objects OBJECT ${CXX_SRCS} ${MC_SRCS}) set_property(TARGET symdiff_objects PROPERTY POSITION_INDEPENDENT_CODE ON) ADD_LIBRARY(symdiff_dynamic STATIC $) ADD_LIBRARY(symdiff SH

Re: [CMake] CMake link order

2019-10-18 Thread Juan Sanchez
Hello, I have always used all of the libraries at once to the TARGET_LINK_LIBRARIES command. In the following example, the link line order appears the same as the libraries are listed on the line. TARGET_LINK_LIBRARIES(devsim_tcl ${LIBRARIES} ${TCL_ARCHIVE} ${SUPERLU_ARCHIVE} ${BLAS_ARCHIVE} ${S

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Juan Sanchez
Hello, It has been a while since I've looked at this stuff, but I do use exceptions in my project. So I add the /EHsc: SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:strict /EHsc ${WARNINGS_IGNORE}") SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /fp:strict ${WARNINGS_IGNORE}") and I also add a linker flag:

Re: [CMake] Suddendly missing members when compiling on macOS Mojave

2019-11-08 Thread Juan Sanchez
I had an issue last week, where the isysroot setting was messed up, after I had done an xcode update. Even though I am using Mojave (10.14), instead of Catalina (10.15), xcode has apparently upped the version number from 10.14 to 10.15. /Applications/Xcode.app/Contents/Developer/Platforms/ MacOS

[CMake] Setting the compiler

2007-07-27 Thread Juan Sanchez
I'm evaluating CMAKE for use by our group and I am running into an issue with selecting the compiler. Is there any way to set the compiler and flags in the CMakeLists.txt file? This information appears to be ignored. The FAQ as well as the book suggest setting environment variables. We have a s

Re: [CMake] Setting the compiler

2007-07-27 Thread Juan Sanchez
Bill Hoffman wrote: > Juan Sanchez wrote: >> I'm evaluating CMAKE for use by our group and I am running into an issue >> with selecting the compiler. >> >> Is there any way to set the compiler and flags in the CMakeLists.txt >> file? This information appears

Re: [CMake] Setting the compiler

2007-07-27 Thread Juan Sanchez
dencies? Are the "#include" statements in conditional macros tests honored when determining the dependencies? Are the macro defines used in the compilation also passed along to the dependency checker for each build variant? Thanks, Juan Bill Hoffman wrote: > Juan Sanchez wrote: >>

Re: [CMake] Setting the compiler

2007-07-29 Thread Juan Sanchez
quot;? Then it would be possible for developer's existing Makefiles to not get clobbered by cmake. Gnu make could then be called with the -f specification for the Makefile name. Thanks, Juan Bill Hoffman wrote: > Juan Sanchez wrote: >>> So, what is the current b

[CMake] set variable in if block

2007-07-30 Thread Juan Sanchez
Hello, I am trying to set a variable in an IF block, but it doesn't appear in the resulting cache or makefile. This is on Linux. Note that when I run cmake, the ${OSNAME} variable is printed, but the ${FOOBAR} variable ends up blank. Thanks, Juan IF (${OSNAME} STREQUAL "Linux64") MESSAGE ("

[CMake] Re: set variable in if block

2007-07-30 Thread Juan Sanchez
My apologies, it turns out there was a syntax error, that was not fatal, and not mentioned in the debug output. Thanks, Juan Juan Sanchez wrote: > Hello, > > I am trying to set a variable in an IF block, but it doesn't appear in > the resulting cache or makefile. This is on

[CMake] object file target

2007-07-30 Thread Juan Sanchez
. Every time I type make, the object file gets recreated. ADD_CUSTOM_COMMAND( OUTPUT ${PSTUFF}.o DEPENDS ${PSTUFF}.cc COMMAND ${CMAKE_CXX_COMPILER} ARGS ${MYFLAGS} ) Thanks, Juan -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395

Re: [CMake] object file target

2007-07-30 Thread Juan Sanchez
nto a shared library in a better way, I'd appreciate that info too. Regards, Juan Alexander Neundorf wrote: > On Monday 30 July 2007 16:24, Juan Sanchez wrote: >> Is there a command for creating a .o target on Linux? If I create my >> own custom command for creating an ob

Re: [CMake] object file target

2007-07-30 Thread Juan Sanchez
ype make? Thanks, Juan Hendrik Sattler wrote: > Am Montag 30 Juli 2007 22:44 schrieb Juan Sanchez: >> It's pretty messy the Makefile I am trying to convert. It is trying to >> do something like this: >> g++ -shared obj1.o obj2.o obj3.o staticarchivex.a staticarchivey.a

Re: [CMake] object file target

2007-07-30 Thread Juan Sanchez
he linker for each of the static library arguments. Thanks again, Juan Hendrik Sattler wrote: > Am Montag 30 Juli 2007 23:39 schrieb Juan Sanchez: >>> Did you try to make it straight-forward without any tweaking around?: >>> add_library (staticarchivex STAT

Re: [CMake] object file target

2007-07-30 Thread Juan Sanchez
Thanks everyone for their help. I'm evaluating cmake for my group and it appears that cmake meets many of the needs that we have. Regards, Juan Hendrik Sattler wrote: > Am Dienstag 31 Juli 2007 00:16 schrieb Juan Sanchez: >> Thanks for the "make VERBOSE=1". I was

Re: [CMake] object file target

2007-07-30 Thread Juan Sanchez
build system. make VERBOSE=1 sets an environment variable to 1, and this is read by the cmake binaries. Cheers, Juan Brandon Van Every wrote: > On 7/30/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: >> Thanks for the "make VERBOSE=1". I was flying blind before that since

Re: [CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Juan Sanchez
loaded the first > time ? Looks much friendlier then. If this is possible, just use the first > source file or the first main.* file you find. > > For the KDevelop generator I implemented a simple logic which reads the > project files it created on a previous cmake run (and which m

[CMake] get includes

2007-08-01 Thread Juan Sanchez
Is it possible to get the include paths from ADD_DIRECTORIES into a custom command? I need to pass along the include path for a special swig invocation. Regards, Juan -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395 ___ CMake

[CMake] Passing -B on linux

2007-08-02 Thread Juan Sanchez
When I create a new cmake area, the tests are failing since it cannot find the 64bit version of our tools on linux. Is there anyway to pass the -B option to C and C++ compiler during the compiler testing phase? Thanks, Juan -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395

Re: [CMake] Passing -B on linux

2007-08-02 Thread Juan Sanchez
leExec/fast] Error 2 Is there any way to pass a flag to g++ being invoked by the testing utils? I'm at least able to put the c++ compiler specification in a cache file, but I need to know how to prevent the path to the linker utils to be at the whim of the developer's environment. Regard

Re: [CMake] get includes

2007-08-02 Thread Juan Sanchez
It looks like it should work. Thanks, Juan Alexander Neundorf wrote: > On Wednesday 01 August 2007 18:53, Juan Sanchez wrote: >> Is it possible to get the include paths from ADD_DIRECTORIES into a >> custom command? I need to pass along the include path for a special >

Re: [CMake] Passing -B on linux

2007-08-02 Thread Juan Sanchez
Hi Bill, I was able to add CMAKE_CXX_FLAGS to my initial cache file and it worked. Thanks for the clarification. Thanks, Juan Bill Hoffman wrote: > Juan Sanchez wrote: >> Hello gga, >> >> Unfortunately, the ADD_DEFINITIONS aren't being used in the initial >>

[CMake] big custom command dependency problem

2007-08-06 Thread Juan Sanchez
I created a custom command to generate a cpp file. I then use this cpp file to create a library as a separate add_library command. Whenever I type make, this cpp file is regenerated, and the library is recreated. Compiling this file is super expensive. Nothing has changed between invocations of

Re: [CMake] big custom command dependency problem

2007-08-06 Thread Juan Sanchez
I found the problem. The output from the custom command has to explicitly specify the destination path of the output file. OUTPUT ${PROJECT_BINARY_DIR}/output.cc I was already specifying the full path for the input to the library. Regards, Juan Juan Sanchez wrote: > I created a cus

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-08 Thread Juan Sanchez
ompiler is not installed properly? Are you > able to compile and link a simple 'hello world!' program? > ld is the linker. On a redhat system it's in the binutils package. I have no idea where it would be on ubuntu. It is independent of the compiler. Regards, Juan -- Juan

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-08 Thread Juan Sanchez
In addition, if it is crt1.o which is missing, it is in glibc-devel on a redhat 7.3 system. Regards, Juan Juan Sanchez wrote: > Matthew Woehlke wrote: >> Alex Dantart wrote: >>> Matthew Woehlke wrote: >>>> Alex Dantart wrote: > . > . > . >> Any

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-08 Thread Juan Sanchez
mon problem, but with a simple solution. On debian: apt-get install libc6-dev On Fedora: $ locate crt1.o /usr/lib/crt1.o On Ubuntu: apt-get install libc6-dev { If not root, sudo apt-get install libc6-dev } Juan Sanchez wrote: > In addition, if it is crt1.o which is missing, it is in glibc

[CMake] dependency checking

2007-08-09 Thread Juan Sanchez
ke discover the source files instead of me specifying them? Is there a better way of preventing rebuilds when I know that my changes don't invalidate the object files I already have compiled? Regards, Juan -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext

Re: [CMake] dependency checking

2007-08-09 Thread Juan Sanchez
rds, Juan Alexander Neundorf wrote: > On Thursday 09 August 2007 12:57, Juan Sanchez wrote: >> I've been trying to find a good explanation of how the "/fast" target >> works online? Is there a place where the exact behavior documented? >> >> Also my co

Re: [CMake] dependency checking

2007-08-09 Thread Juan Sanchez
Juan PROJECT(main) SET (SRCS a.cc b.cc c.cc d.cc e.cc f.cc g.cc) ADD_EXECUTABLE(a ${SRCS}) ADD_LIBRARY(b ${SRCS}) SET_SOURCE_FILES_PROPERTIES ( ${SRCS} COMPILE_FLAGS "-Wall" ) Bill Hoffman wrote: > Juan Sanchez wrote: >> I just added a source file to the list of sources in

Re: [CMake] dependency checking

2007-08-09 Thread Juan Sanchez
ing costly rebuilds. > ... >> SET_SOURCE_FILES_PROPERTIES ( >> ${SRCS} >> COMPILE_FLAGS "-Wall" >> ) > > I didn't test, but here the PROPERTIES keyword is missing. Is it just a > copy'n > paste error or does it still

[CMake] making two targets with similar names

2007-08-10 Thread Juan Sanchez
I am having the following issue. I want to create both a libFOO.a and a libFOO.so. Note that the libFOO.so is composed of more sources than the libFOO.a. I use OUTPUT_NAME in order so they have the same name. I can make the FOOSTATIC, libFOO.a, target, just fine. However, making the FOODYNAMIC

Re: [CMake] making two targets with similar names

2007-08-10 Thread Juan Sanchez
Hi Bill, Thanks, it works when I do this in SET_TARGET_PROPERTIES. Juan Juan Sanchez wrote: > Hi Bill, > > What's the proper syntax? Setting the variable in CMakeLists.txt doesn't > work. Neither does setting it in my initial Cache file (loaded with > cmake -C). >

Re: [CMake] making two targets with similar names

2007-08-10 Thread Juan Sanchez
Hi Bill, What's the proper syntax? Setting the variable in CMakeLists.txt doesn't work. Neither does setting it in my initial Cache file (loaded with cmake -C). SET (CLEAN_DIRECT_OUTPUT 1 CACHE STRING "1") Thanks, Juan Bill Hoffman wrote: > Juan Sanchez wrote: >&

[CMake] basename macro

2007-09-10 Thread Juan Sanchez
Is there a basename macro to remove the file extension from a name? I am using 2.4.7. Thanks, Juan ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] disable compiler test

2007-09-10 Thread Juan Sanchez
How do you disable the compiler test? Our version of gcc is passing a bad compiler option (--as-needed) to ld and it is causing cmake to fail. This is ok since g++ still seems to work properly. Thanks, Juan ___ CMake mailing list CMake@cmake.org ht

Re: [CMake] disable compiler test

2007-09-10 Thread Juan Sanchez
The only "C" code being compiled for this particular project is the CMake tests. I need to disable the tests so I can proceed to demonstrate cmake to my colleagues. I will fix the compiler issue later with our systems team. Thanks, Juan Bill Hoffman wrote: > Juan Sanchez wrote: &g

Re: [CMake] disable compiler test

2007-09-10 Thread Juan Sanchez
es of things that our installation of 4.1.1 is lacking and that he should start testing a newer compiler. Alternatively, we may just need to update ld. Thankfully, 3.4.0 is still our baseline compiler. Juan Bill Hoffman wrote: > Juan Sanchez wrote: >> Hi Bill, >> >> Curren

[CMake] --whole-archive

2007-09-13 Thread Juan Sanchez
. Thanks, Juan -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] --whole-archive

2007-09-13 Thread Juan Sanchez
After some extensive googling, I found the solution here. http://www.mail-archive.com/cmake@cmake.org/msg01890.html Juan Sanchez wrote: > Hi, > > On linux, I need to generate an shared library from an archive. I need > to have: > > -Wl,-whole-archive > > befor

[CMake] faq update?

2007-09-13 Thread Juan Sanchez
dated? This FAQ entry is scaring some of my colleagues: That means I have to build all my library objects twice, once for shared and once for static. I don't like that! and they are on the prowl for cmake dealbreakers. Thanks, Juan -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 543

[CMake] how to track package dependencies

2007-09-13 Thread Juan Sanchez
What would be the best way to tackle having dependencies with multiple packages? For example, if package A depends on both packages B and C: 1. To make sure the compiler is the same 2. Know what flags where used for the sources in the dependency 3. Know whether or not the static archive is positi

Re: [CMake] faq update?

2007-09-13 Thread Juan Sanchez
way ld works on linux, and I think that it is a valid approach. I'd prefer not to engage in wiki wars where I replace the untrue statement, with a technically correct "hack". Then someone goes and changes it back. Juan Brandon Van Every wrote: > On 9/13/07, Juan Sanchez

Re: [CMake] faq update?

2007-09-13 Thread Juan Sanchez
Here is my update to the FAQ: http://www.cmake.org/Wiki/CMake_FAQ#That_means_I_have_to_build_all_my_library_objects_twice.2C_once_for_shared_and_once_for_static.__I_don.27t_like_that.21 I really think this information is important for developers, and should be made known. Regards, Juan __

Re: [CMake] faq update?

2007-09-13 Thread Juan Sanchez
his automagically. Then the > angst and gnashing of teeth goes away. My solution is very easy to > implement, and it's easy for the user to employ, but requires that > Kitware freeze a public interface to the object file locations. I > don't know if they're willing to do that. > > > Cheers, > Brandon Van Every > ___ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake > > -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Creating a static lib from other static libs, HOW?

2007-09-16 Thread Juan Sanchez
> but no luck. They all get completly ignored. > > Any ideas? > > MfG > Goswin > _______ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake > > -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395

Re: [CMake] Creating a static lib from other static libs, HOW?

2007-09-18 Thread Juan Sanchez
they are being extracted. Even with Brandon's solution, I don't think ar let you add multiple .o files of the same name in the archive. The symbols of the first .o file will get replaced by the symbols of the second .o file to be added. Juan Goswin von Brederlow wrote: > "Juan Sa

Re: [CMake] Creating a static lib from other static libs, HOW?

2007-09-18 Thread Juan Sanchez
Hello Brandon, How do you create the final archive without the ar command? Juan Brandon Van Every wrote: > On 9/18/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: >> Even with Brandon's solution, I don't think ar let you add multiple .o >> files of the same name in

Re: [CMake] Creating a static lib from other static libs, HOW?

2007-09-18 Thread Juan Sanchez
another tool. Juan Sanchez wrote: > Hello Brandon, > > How do you create the final archive without the ar command? > > Juan > > Brandon Van Every wrote: >> On 9/18/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: >>> Even with Brandon's solution, I don&#

Re: [CMake] Creating a static lib from other static libs, HOW?

2007-09-18 Thread Juan Sanchez
ndon Van Every" <[EMAIL PROTECTED]> writes: > >> On 9/16/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: >>> Hello, >>> >>> The ar command can be used to extract the .o files from a .a file. >>> Extracting them all into the same directory, perh

[CMake] override variable in macro

2007-09-20 Thread Juan Sanchez
It appears that the set command cannot override a variable specified as a MACRO argument. For example: MACRO (ADD_GADB RCMD) does not accept changes to RCMD within the macro using the set command. Is there a way to override this? Thanks, Juan ___

Re: [CMake] override variable in macro

2007-09-21 Thread Juan Sanchez
unately, I didn't catch the reference semantics. BTW, C++ references are by default mutable, unless they are qualified with const. Juan Dizzy wrote: > On Thursday 20 September 2007 20:38:38 Juan Sanchez wrote: >> It appears that the set command cannot override a variable specified as

Re: [CMake] override variable in macro

2007-09-21 Thread Juan Sanchez
then escape the macro's namespace. Can we have the SET command fail on trying to set a macro parameter? Juan Dizzy wrote: > On Thursday 20 September 2007 20:38:38 Juan Sanchez wrote: >> It appears that the set command cannot override a variable specified as >> a MACRO argumen

Re: [CMake] override variable in macro

2007-09-21 Thread Juan Sanchez
I would argue that the following snippet of code should either print "CAT" twice or die. Unfortunately it first prints "DOG" and then "CAT". Thanks, Juan MACRO(FOO BAR) SET (BAR "CAT") MESSAGE("${BAR}") ENDMACRO(FOO) FOO(DOG) MESSAGE(&qu

Re: [CMake] override variable in macro

2007-09-21 Thread Juan Sanchez
Ok, But cpp doesn't discriminate between ${BAR} and BAR. #include using namespace std; #define foo(x) x = 3; cout << x << "\n"; int main() { int y = 1; foo(y); cout << y << endl; } Juan Bill Hoffman wrote: > Juan Sanchez wrote: >>

[CMake] target_link_libraries external library

2007-09-21 Thread Juan Sanchez
Hello, How do you add an externally library for linking into a target? I am getting something like this from TARGET_LINK_LIBRARIES? CMake Error: Attempt to add link library "/bar/linux-x86/opt/foo.a" to target "waterlooApps" which is not built by this project. Thanks, Juan _

[CMake] ctest question

2007-09-23 Thread Juan Sanchez
I want run a test program and pipe its results to a file. I then want to compare this file to the golden results using diff. Does anyone have a macro or cookbook example for doing this? Thank you, Juan ___ CMake mailing list CMake@cmake.org http://w

Re: [CMake] Creating a static lib from other static libs, HOW?

2007-09-23 Thread Juan Sanchez
Hello Brandon, What is the appropriate email list for doing things in cmake for a particular architecture, like Unix? There is a rich history in many disciplines where people need to address a compelling need in a specific case. Once the immediate need is addressed, the system can be extended fo

Re: [CMake] Creating a static lib from other static libs, HOW?

2007-09-23 Thread Juan Sanchez
On my Linux laptop, I used getconf to see that the maximum argument length is 131072. This is not the maximum number of arguments. I ran a test CMakeLists.txt, and the maximum length to the echo command from EXEC_PROGRAM was 128788 characters. Fortunately, exec'ing a program will fail (non zero

Re: [CMake] Creating a static lib from other static libs, HOW?

2007-09-23 Thread Juan Sanchez
on on windows requiring an explicit list of all files going into a library. Regards, Juan Juan Sanchez wrote: > On my Linux laptop, I used getconf to see that the maximum argument > length is 131072. This is not the maximum number of arguments. I ran a > test CMakeLists.txt, and the max

Re: [CMake] ctest question

2007-09-24 Thread Juan Sanchez
iliations with the FreeEOS equation-of-state implementation > for stellar interiors (freeeos.sf.net); PLplot scientific plotting software > package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of > Linux Links project (loll.sf.net); and the Linux Brochure Project > (

Re: [CMake] ctest question

2007-09-24 Thread Juan Sanchez
Thanks Alan for your detailed response. I think your advice is very helpful. I think I'm getting on to the right track with ctest. Regards, Juan Alan W. Irwin wrote: > On 2007-09-24 10:05-0500 Juan Sanchez wrote: > >> Hello Alan, >> >>> From your example, wh

Re: [CMake] ctest question

2007-09-25 Thread Juan Sanchez
math libraries. I always disable 80 bit extended precision on linux since the results are non-deterministic with respect to compiler settings. Regards, Juan Alan W. Irwin wrote: > On 2007-09-24 10:05-0500 Juan Sanchez wrote: > >> Hello Alan, >> >>> From your exam

Re: [CMake] Compiling fortran

2007-09-26 Thread Juan Sanchez
/pisces.dir/all] Error 2 >> make[1]: Leaving directory >> `/home/anon/svn/svn_repository/relB.9009/pisces/9009/src' >> >> Thanks, >> >> Juan > > Yap It is a "feature" of cmake (even there are some bug reports about it). > You > should

Re: [CMake] ctest question

2007-09-26 Thread Juan Sanchez
Awesome. I love that guys work on bibtex and bibtools. Juan Mathieu MARACHE wrote: > 2007/9/25, Juan Sanchez <[EMAIL PROTECTED]>: >> Hi Alan, >> >> I also have floating point results I want to account for. I'm thinking >> about writing a diff script for nu

Re: [CMake] Compiling fortran

2007-09-26 Thread Juan Sanchez
fixed_fmt, is ever activated. ^[cC*dD].*\n { return EOSTMT; } /* empty lines */ Do you have any info about how to make submissions and getting the latest CVS? Juan Bill Hoffman wrote: > Juan Sanchez wrote: >> It turns out that any word of the word Use or use as a word anywhere in >

Re: [CMake] Compiling fortran

2007-09-26 Thread Juan Sanchez
Anyone know what are the valid comment lines in all the Fortran variants? I know of lines beginning with c, C, or * in the first column. Juan Bill Hoffman wrote: > Juan Sanchez wrote: >> Hi Bill, >> >> I wouldn't mind taking a stab at it. >> >> It would

Re: [CMake] CTest and Makefiles

2007-09-26 Thread Juan Sanchez
> It seems like make has its own internal test target and it will not use the > test target from the Makefile. Does anyone know what is going on here or how > to fix it? > > Thanks, > Justin > _______ > CMake mailing list > CMake@c

Re: [CMake] CTest and Makefiles

2007-09-26 Thread Juan Sanchez
: test" >> Makefile ~/bar> make test Running tests... Start processing tests Test project /home/juans/bar 1/ 1 Testing foo Passed Juan Sanchez wrote: > Would you happen to have a file named "test" in your binary area? Make > will see

Re: [CMake] CTest and Makefiles

2007-09-26 Thread Juan Sanchez
Thanks, > Justin > > On Wednesday 26 September 2007 09:43:42 Juan Sanchez wrote: >> As a followup. If I "touch test", the test no longer runs. If I add >> the PHONY target to the Makefile. The tests still run. >> >> >> ~/bar> mak

[CMake] include directories variable?

2007-09-26 Thread Juan Sanchez
How do I get the INCLUDE_DIRECTORIES path? I need to feed into into the search path for the swig command line. Thanks, Juan ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] removing invalid output

2007-09-27 Thread Juan Sanchez
I am using ADD_CUSTOM_COMMAND to produce an output. Unfortunately, if the commands in it fail, the OUTPUT. Hence the OUTPUT is up to date, even though it is invalid. Is there a way to tell ADD_CUSTOM_COMMAND to remove its output when it fails? Thanks, Juan ___

Re: [CMake] problem creating a library on mac

2007-09-27 Thread Juan Sanchez
MAKE_SOURCE_DIR}/bin) >> > I just wanted the binary to be in this folder (and all the files > created by cmake to be in this directory so I could clean up my > directory more easily ) > ___ > CMake mailing list > CMake@cma

Re: [CMake] problem creating a library on mac

2007-09-27 Thread Juan Sanchez
Marie-Christine Vallet wrote: > Juan Sanchez wrote: >> Could this be an issue with linker order? Most linkers are one pass. >> The library containing the undefined references should be on the linker >> line before the library containing the symbols, or vice-versa

Re: [CMake] Can "Make help" be set less verbose?

2007-10-02 Thread Juan Sanchez
;-? >> > Maybe we need a make helpless :-) > > You could add a feature request to the bug tracker. > > -Bill > > _______ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake

[CMake] SET_TARGET_PROPERTIES twice

2007-10-02 Thread Juan Sanchez
I just discovered that the moment I add a second SET_TARGET_PROPERTIES statement for a specific target, cmake will implicitly fail, and not write out a Makefile. It even states that it is writing the build files, but it does not. This is cmake 2.4.7 on linux. Any advice? Juan

Re: [CMake] SET_TARGET_PROPERTIES twice

2007-10-02 Thread Juan Sanchez
the source to > the list? Or, if not, could you post your source as is? > > > On 10/2/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: >> I just discovered that the moment I add a second SET_TARGET_PROPERTIES >> statement for a specific target, cmake will implicitly fail

[CMake] ADD_CUSTOM_COMMAND and working directory

2007-10-03 Thread Juan Sanchez
` WORKING_DIRECTORY ${PROJECT_BINARY_DIR} COMMAND echo `pwd` WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} ) ADD_CUSTOM_TARGET( zed ALL DEPENDS bar) Will always print the source directory. Thanks, Juan -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395

[CMake] install before test

2007-10-04 Thread Juan Sanchez
How can you ensure that an install has done before you attempt to run the tests? Thanks, Juan -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] ctest command

2007-10-04 Thread Juan Sanchez
d needs to be able to take the arguments given. Please let me know what I need to do to get this to run. Testing/Temporary/LastTest.log always appears to be empty and the -VV option does not work. This is cmake 2.4.7. Thanks, Juan -- Juan Sanchez [EMAIL PROTECTED] 800-53

Re: [CMake] Dealing with circular linker dependencies

2007-10-04 Thread Juan Sanchez
list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

  1   2   >