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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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] [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] [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] 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] 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 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 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
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-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] 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
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] 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] CMake Book ?

2007-11-14 Thread Juan Sanchez
to get rid of ? > > Hey, good to see you here :-) > > I guess they are preparing a new edition of the book. > -- 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] Link question

2007-11-12 Thread Juan Sanchez
ies, and I think at least one of them may not have had the lib prefix. If that doesn't work, try SET_TARGET_PROPERTIES with the LINK_FLAGS you want. Juan > > Alex > ___ > CMake mailing list > CMake@cmake.org > http://www.cmake.o

Re: [CMake] Automatic dependency scanner of CMake 2.4.7

2007-11-11 Thread Juan Sanchez
is not very exact but better more then less. > Your programming isn't good either. Did you try the following? > #if 0 > #include "foo.h" > #endif > > HS > _______ > CMake mailing list > CMake@cmake.

Re: [CMake] improve the CMake language?

2007-11-07 Thread Juan Sanchez
I was reading exactly the link you sent, and the same one you accused Brandon of not reading. If there were supplemental materials, you should have sent them. I am not a lawyer. To be honest, the only compelling languages I've seen so far in this discussion is lua and tcl. This is because they

Re: [CMake] Linking problem

2007-11-07 Thread Juan Sanchez
ECT_OUTPUT 1 COMPILE_FLAGS -fPIC ) SET_TARGET_PROPERTIES( zzDYNAMIC PROPERTIES OUTPUT_NAME zz CLEAN_DIRECT_OUTPUT 1 ) ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_COMPILER_IS_GNUCC) Regards, Juan Juan Sanchez wrote: > Hello, > > There a mu

Re: [CMake] Linking problem

2007-11-07 Thread Juan Sanchez
e may vary. Regards, Juan Juan Sanchez wrote: > Two things with convenience libraries. Part of this may be in the FAQ: > > On linux, compile the code fPIC or fpic (slightly different meanings). > > So for library hello: > SET_TARGET_PROPERTIES( > hello PROPERTIES > OUTPU

Re: [CMake] Linking problem

2007-11-07 Thread Juan Sanchez
t; certain missing simbols. Some symbols from liba.a are missing in > libbar.so. > > So far I have "fixed" the issue by linking one of the libs of > libfoo.so (say libx.a) to libbar.so. But this smells of nasy > workaround. > > Obviously I'm doing something wrong

Re: [CMake] compiler major, minor version

2007-11-05 Thread Juan Sanchez
; 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] lexical scoping

2007-11-02 Thread Juan Sanchez
Oh, I guess you did. My apologies. I guess the best way to fix your issue would be to move to a lua frontend. Juan Brandon Van Every wrote: > On Nov 2, 2007 4:22 PM, Juan Sanchez <[EMAIL PROTECTED]> wrote: >> My suggestion as a temporary work around would be to apply a namespa

Re: [CMake] lexical scoping

2007-11-02 Thread Juan Sanchez
be a way of creating scope. > > Then add braces. Not some begin_long_thing_word end_long_thing_word. > Nobody does that, nobody will like it. > > > 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] improve the CMake language?

2007-11-02 Thread Juan Sanchez
Brandon Van Every wrote: > On Nov 2, 2007 11:49 AM, Juan E. Sanchez <[EMAIL PROTECTED]> wrote: >> On Fri, 2 Nov 2007, Brandon Van Every wrote: >>> To make real improvements in all of those areas, you'd need a lot of >>> funding. What kind of mandate do you have? There's not much point in >>> sayi

Re: [CMake] wxCmakeSetup

2007-10-26 Thread Juan Sanchez
With wxWidgets 2.6.8, the 64 bit issues appear to be solved. Unfortunately, it no longer likes receiving (const char *)'s without converting them using some special functions. It would take a while to change the code according to the instructions in: http://www.wxwidgets.org/wiki/index.php/WxStrin

Re: [CMake] wxCmakeSetup

2007-10-26 Thread Juan Sanchez
.2/include/wx-2.6/wx/string.h:769: note: wxChar& wxString::operator[](size_t) Brandon Van Every wrote: > On 10/26/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: >> Where is the source for wxCMakeSetup? > > In a CMake source tree, I'm gonna guess it'

Re: [CMake] wxCmakeSetup

2007-10-26 Thread Juan Sanchez
Where is the source for wxCMakeSetup? What platforms do you need it to compile for? I could do linux and maybe cygwin. Juan Mike Jackson wrote: > I am more intersted in a nice Qt CMakeSetup but with some more added > features. wxWidgets and Fltk just do not look that good under OS X. I > am

Re: [CMake] Wrong number of "../" elements in target path? 2.4.6 vs. 2.4.7 bug?

2007-10-24 Thread Juan Sanchez
everyone for the help. > > - Christian > ___ > 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

[CMake] compare ctest to dejagnu?

2007-10-18 Thread Juan Sanchez
Someone in my group is investigating dejagnu. I was wondering if anyone with experience in ctest and dejagnu has any thoughts on these two testing systems? Thanks, Juan ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmak

Re: [CMake] purify targets

2007-10-11 Thread Juan Sanchez
To clarify my question, should I expect changing CMAKE_CXX_LINK_EXECUTABLE to apply to both targets in the example below? This is cmake 2.4.7. Regards, Juan Juan Sanchez wrote: > Hello, > > Is it possible to build both purify and non purify targets by changing > CMAKE_CXX_LIN

[CMake] purify targets

2007-10-10 Thread Juan Sanchez
Hello, Is it possible to build both purify and non purify targets by changing CMAKE_CXX_LINK_EXECUTABLE? Unfortunately the following example purify's both binaries. ADD_EXECUTABLE(hello helloworld.cc) SET (CMAKE_CXX_LINK_EXECUTABLE "purify -cache-dir=/tmp ${CMAKE_CXX_LINK_EXECUTABLE}") ADD_EXECU

Re: [CMake] cmake copy command problem

2007-10-09 Thread Juan Sanchez
I apologize. Upon further testing, this doesn't appear to be an issue. Thanks, Juan Juan Sanchez wrote: > Since I must copy a target after it's built, I synthesize a compile time > install command. > > Unfortunately, the copy command obliterates the destination director

[CMake] cmake copy command problem

2007-10-09 Thread Juan Sanchez
Since I must copy a target after it's built, I synthesize a compile time install command. Unfortunately, the copy command obliterates the destination directory with a copy of the file being created. This seems to be contrary to the "cmake -E help" documentation: copy file destination - copy fil

[CMake] get the target name in add_custom_command

2007-10-09 Thread Juan Sanchez
In this example, the target name foo has a different OUTPUT_NAME. How do I tell ADD_CUSTOM_COMMAND to use the real name of the target when I try to use the copy command within? ADD_CUSTOM_COMMAND(TARGET foo POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy foo ${PROJECT_SOURCE_DIR}/${INSTALL_DIR}) Tha

Re: [CMake] for install before running tests

2007-10-09 Thread Juan Sanchez
libraries in the correct place? Regards, Juan Alan W. Irwin wrote: > On 2007-10-09 10:12-0500 Juan Sanchez wrote: > >> The test scripts for an existing project rely greatly on the installed >> directory structure. > > For your information, that's contrary to t

[CMake] for install before running tests

2007-10-09 Thread Juan Sanchez
The test scripts for an existing project rely greatly on the installed directory structure. Is it possible to always force an install before the tests are run? Thanks, Juan -- Juan Sanchez [EMAIL PROTECTED] 800-538-8450 Ext. 54395 512-602-4395

Re: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Juan Sanchez
gt;> Updated to revision 4. >>> [rcatwood testproj]$ svnversion >>> 0:6 >>> [rcatwood testproj]$ cat * >>> $Id: FileA.txt 6 2007-10-05 15:50:26Z rcatwood $ >>> This is file A. Third (after propset) revision. >>> $Id: FileB.txt 6 2007-10-05 15:50:26Z rcatwood $ >>> This is file B. Thir

Re: [CMake] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Juan Sanchez
at subversion docs, to find out what > that command actually is! > -- Robert > > > ___ > 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] Version embedding - how to cause a command when make is run?

2007-10-05 Thread Juan Sanchez
t) revision. >> $Id: FileD.txt 6 2007-10-05 15:50:26Z rcatwood $ >> This is file D. Third (after propset) revision. >> $Id: FileE.txt 6 2007-10-05 15:50:26Z rcatwood $ >> This is file E. Third (after propset) revision. >> [rcatwood testproj]$ >> [rcatwood testproj]$ svn status >> [rcatwood testproj]$ >> ___ >> CMake mailing list >> CMake@cmake.org >> http://www.cmake.org/mailman/listinfo/cmake >> > ___ > 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] ctest command

2007-10-04 Thread Juan Sanchez
agree with you. --help-full, which is the same as the man pages I've been reading, offer little help. Thanks, Juan Alan W. Irwin wrote: > On 2007-10-04 14:14-0500 Juan Sanchez wrote: > >> I am trying to follow an example that is in the cmake book. It is in >> section 8.

unsolved! Re: solved! Re: [CMake] ctest command

2007-10-04 Thread Juan Sanchez
per script, is there any way to tell ctest to run in a specific directory? Thanks, Juan Juan Sanchez wrote: > To solve my issue, I only need to specify the following. Otherwise, no > error is printed, the test will always past, and ctest --debug prints > pages and pages of de

solved! Re: [CMake] ctest command

2007-10-04 Thread Juan Sanchez
nks, Juan Juan Sanchez wrote: > I am trying to follow an example that is in the cmake book. It is in > section 8.5 "Using CTest to Drive Complex Tests" on page 109. While my > example differs in that it doesn't use all the arguments being used in > the book's examp

Re: [CMake] ctest command

2007-10-04 Thread Juan Sanchez
Juan Alan W. Irwin wrote: > On 2007-10-04 13:03-0500 Juan Sanchez wrote: > >> Hi, >> >> I'm trying to run the following test: >> ADD_TEST("foo" ${CMAKE_TEST_COMMAND} --build-run-dir >> ${PROJECT_SOURCE_DIR} -VV --test-command "ls -ltar /tmp&

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

[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

[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] 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

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] 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] 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

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] 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

[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 ___

[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

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

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
> 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] 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] 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] 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
/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-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] 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-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] 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] 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
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

[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

[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 _

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: >>

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
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
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

[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] 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

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
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-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] 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] 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
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

[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

[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

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] --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] 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

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

[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

[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

  1   2   >