[CMake] Ordering of libraries

2008-02-18 Thread Mark Wyszomierski
Hi, Is there a way to get one of your libraries to be included in your project before default libraries? Tough to explain - I'm compiling specifically for visual studio 2005. When CMake is done creating the solution files, I can see the additional dependencies string looks like this: $(NOINHE

Re: [CMake] Ignore library flags now works in 2.4.8!

2008-02-18 Thread Mark Wyszomierski
ven't looked at this for a few months, sorry about the confusion, Thanks, Mark On Feb 18, 2008 4:08 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > > Mark Wyszomierski wrote: > > Hi, > > > > I just downloaded the new CMake version 2.4 patch 8.

[CMake] Ignore library flags now works in 2.4.8!

2008-02-18 Thread Mark Wyszomierski
Hi, I just downloaded the new CMake version 2.4 patch 8. This command now works: SET(VS_MULTITHREADED_DEBUG_IGNORE_LIBRARY_FLAGS "/NODEFAULTLIB:nafxcwd.lib /NODEFAULTLIB:libcmtd.lib" ) I want to do the same thing for my release builds, kind of like: SET(VS_MULTITHREAD

Re: [CMake] question on linux release builds

2007-12-18 Thread Mark Wyszomierski
ake files? Thanks, Mark On Dec 18, 2007 11:18 AM, Olivier Delannoy <[EMAIL PROTECTED]> wrote: > You can look for the flag being used using ccmake and displaying > advance flags. If you do so you will see that the release build do use > different flag than debug build. > &

[CMake] question on linux release builds

2007-12-18 Thread Mark Wyszomierski
Hi, Sorry if this is a duplicate message, forgot I wasn't subscribed to the list. When we create a linux build, and set the compile flag to 'release', no optimizations are actually performed, right? We need to pass that flag to 'make', right, something like: > make -O2 otherwise, there's r

Re: [CMake] ignoring a specific library

2007-11-07 Thread Mark Wyszomierski
INK_FLAGS_DEBUG ${VS_MULTITHREADED_DEBUG_IGNORE_LIBRARY_FLAGS}) After creating the solution files, I don't see anything in the ignore default library fields - any ideas? Thanks, Mark On 11/2/07, Philip Lowman <[EMAIL PROTECTED]> wrote: > Mark Wyszomierski wrote: > > Is it possible to add

[CMake] ignoring a specific library

2007-11-02 Thread Mark Wyszomierski
Hi, Is it possible to add an ignore library to CMakeLists.txt? This is specifically for a win32 project. I want to ignore: nafxcwd.lib libcmtd.lib Thanks ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] set environment variable

2007-10-30 Thread Mark Wyszomierski
> Yes... > > SET(ENV{BLAH} "blah value") > > ...but it only applies to the running process. The parent process > environment remains unaffected by this type of SET. > > Then, to read env vars into cmake, use "$ENV{BLAH}" > > > > On 10/30/07

[CMake] set environment variable

2007-10-30 Thread Mark Wyszomierski
Hi, Is it possible to set an environment variable (linux) through CMake? Thanks, Mark ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] library names

2007-10-29 Thread Mark Wyszomierski
You're right, I had one reference to "libutil" accidentally! Thanks, Mark On 10/29/07, Brandon Van Every <[EMAIL PROTECTED]> wrote: > On 10/29/07, Mark Wyszomierski <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have a library project named "lib

[CMake] library names

2007-10-29 Thread Mark Wyszomierski
Hi, I have a library project named "lib_util". When using CMake to build the library (with g++), the output file is: liblib_util.a Now another sub project needs to link to that, and has the following in CMakeLists.txt: target_link_libraries(my_app, lib_util) but when compiling my_app,

Re: [CMake] target path, or post build event?

2007-10-26 Thread Mark Wyszomierski
s etc moved into one folder after building the INSTALL project now, thanks for your help, Mark On 10/25/07, Mark Wyszomierski <[EMAIL PROTECTED]> wrote: > Hi guys, > > First off, thanks for helping me with this. > > All the exes/libs I want to move will be built by CMake,

Re: [CMake] target path, or post build event?

2007-10-25 Thread Mark Wyszomierski
t; unless DESTINATION is specified as a full path. Alternately, you can set > DESTINATION to a full path. > > Also, if cmaketest.exe is a target built by CMake, you might prefer to use: > > INSTALL(TARGETS ${cmaketestTarget} DESTINATION ${dest}) > > Justin > > On Thursday 25 Oc

Re: [CMake] target path, or post build event?

2007-10-25 Thread Mark Wyszomierski
build it that will execute the > code in Visual Studio to do the installation. (Equivalent to executing "make > install" on a make file based system...) > > HTH, > David > > > > On 10/24/07, Mark Wyszomierski <[EMAIL PROTECTED]> wrote: > > >

Re: [CMake] target path, or post build event?

2007-10-24 Thread Mark Wyszomierski
he install directory of choice. The > install directory is configured with the variable CMAKE_INSTALL_PREFIX. > > Justin > > On Wednesday 24 October 2007 10:49:37 Mark Wyszomierski wrote: > > Hi, > > > > Is there some way to create an additional target for built bina

[CMake] target path, or post build event?

2007-10-24 Thread Mark Wyszomierski
Hi, Is there some way to create an additional target for built binaries? Besides the default location (not sure where that's defined actually...) I'd like to have my projects all dump their build exes or libraries into 'C:\test' for example. Is it possible? Thanks, Mark __

Re: [CMake] including paths - basic

2007-10-21 Thread Mark Wyszomierski
07, Philip Lowman <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mark Wyszomierski wrote: > > Hi Mike, > > > > When I try CMAKE_BUILD_TYPE MATCHES Debug, it seems to never execute > > the contents of that IF statement (as if

Re: [CMake] including paths - basic

2007-10-20 Thread Mark Wyszomierski
NS(-DDEBUG) > ADD_DEFINITIONS(-Wall) > ENDIF ( CMAKE_BUILD_TYPE MATCHES Debug ) > > > > -- > Mike Jackson Senior Research Engineer > Innovative Management & Technology Services > > > On Oct 19, 2007, at 9:34 AM, Mark Wyszomierski wrote: > > > It works fine

Re: [CMake] defining preprocessor statements

2007-10-20 Thread Mark Wyszomierski
> Use ADD_DEFINITIONS: > > ADD_DEFINITIONS(-DWIN32 -DWINDOWS) > > - Stefan > > > Mark Wyszomierski schrieb: > > Hi, > > > > How do we define a preprocessor statement - in win32 projects you > > usually need to see the following in the C/C++ -> P

[CMake] defining preprocessor statements

2007-10-20 Thread Mark Wyszomierski
Hi, How do we define a preprocessor statement - in win32 projects you usually need to see the following in the C/C++ -> Preprocessor statements section: _WIN32, _WINDOWS ...etc so in the CMakeLists.txt, what syntax is used to put that into the generated project files? Thanks, Mark

Re: [CMake] using SOURCE_GROUP

2007-10-19 Thread Mark Wyszomierski
Whoops please ignore that - it works perfectly - I forgot I had commented the statements out, Thanks, Mark On 10/19/07, Mark Wyszomierski <[EMAIL PROTECTED]> wrote: > Hi Neal, > > That doesn't seem to work for me - does 'subgroup' need to be created > beforehand

Re: [CMake] using SOURCE_GROUP

2007-10-19 Thread Mark Wyszomierski
Thanks, Mark On 10/19/07, Neal Meyer <[EMAIL PROTECTED]> wrote: > You just need to use the other slash > > SOURCE_GROUP( "source\\subgroup" FILES ${SOURCES} ) > > -Neal > > On 10/19/07, Mark Wyszomierski <[EMAIL PROTECTED]> wrote: > > Hi, >

[CMake] using SOURCE_GROUP

2007-10-19 Thread Mark Wyszomierski
Hi, Is it possible to create sub folders in the source tree for vc++ makes? I'm trying something like: IF (WIN32) SOURCE_GROUP("Source Files/Hello/" FILES a.cpp a.h AssocEchoSCP.cpp) ENDIF (WIN32) CMake automatically makes a source folder called "Source Files", and I'd like to put a source folde

Re: [CMake] including paths - basic

2007-10-19 Thread Mark Wyszomierski
007 19:32, Mark Wyszomierski wrote: > > Hi, > > > > I'm new to cmake, it looks great. Is it possible to include different > > paths conditionally, like: > > > > include_directories (${MY_PROJECT_SOURCE_DIR}/my_lib) > > IF (WIN32) > > i

[CMake] make file for win32 MDI application

2007-10-18 Thread Mark Wyszomierski
Hi, When the application you're building the makefile for is an MDI application, how do you; 1) Set the sub system to be: Windows (/SUBSYSTEM:WINDOWS) in visual studio, this option is found under Project -> Linker -> System -> Sub System if not set, the MDI (or any other GUI interfac

[CMake] win32 rc files - or any other files besides cpp/cxx

2007-10-18 Thread Mark Wyszomierski
Hi, I'm using cmake for a large project that has some win32 gui apps in it. In the main project folder I only include those sub projects if compiling for WIN32. That works fine. The win32 gui apps have a .rc file in a sub-folder named 'res'. How do you ask CMake to include those files in the resu

[CMake] including paths - basic

2007-10-18 Thread Mark Wyszomierski
Hi, I'm new to cmake, it looks great. Is it possible to include different paths conditionally, like: include_directories (${MY_PROJECT_SOURCE_DIR}/my_lib) IF (WIN32) include_directories (C:/my_stuff/lib/something) ELSE (WIN32) include_directories (/usr/lib/something) ENDIF (WIN32) Can you keep a