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

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

2008-02-18 Thread Mark Wyszomierski
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. This command now works: SET

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

[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

Re: [CMake] question on linux release builds

2007-12-18 Thread Mark Wyszomierski
, 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. On Dec 18, 2007 4:05 PM, Mark Wyszomierski [EMAIL

Re: [CMake] ignoring a specific library

2007-11-07 Thread Mark Wyszomierski
${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 an ignore library to CMakeLists.txt

[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

[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] set environment variable

2007-10-30 Thread Mark Wyszomierski
{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, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi, Is it possible to set an environment

[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] 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_util. When using CMake to build the library (with g

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

2007-10-25 Thread Mark Wyszomierski
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 October 2007 07:56:38 Mark Wyszomierski wrote: It seems to work, though is moving the file I want

[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] target path, or post build event?

2007-10-24 Thread Mark Wyszomierski
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 binaries? Besides the default location (not sure where that's defined actually...) I'd like to have my projects all dump their build

Re: [CMake] including paths - basic

2007-10-21 Thread Mark Wyszomierski
/21/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 I am never CMake'ing a DEBUG build?). I don't

[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] defining preprocessor statements

2007-10-20 Thread Mark Wyszomierski
: 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++ - Preprocessor statements section: _WIN32, _WINDOWS ...etc so in the CMakeLists.txt

Re: [CMake] including paths - basic

2007-10-20 Thread Mark Wyszomierski
( 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 now that I try it - Is there any way to switch on debug and release builds? Something like

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 somehow? The following works for me

Re: [CMake] using SOURCE_GROUP

2007-10-19 Thread Mark Wyszomierski
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, Is it possible to create sub folders in the source tree for vc++ makes? I'm trying something like: IF (WIN32

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

[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

[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

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