Re: [CMake] Some issues with visual studio

2012-01-08 Thread Renato Utsch
T_TARGET_PROPERTIES(foo PROPERTIES DEBUG_OUTPUT_NAME foo-d > RELWITHDEBINFO_OUTPUT_NAME foo-rwdi MINSIZEREL_OUTPUT_NAME foo-msr). > > However, best option is to just go with the VS flow :-) > > Cheers, > > Fraser. > > > > On 08/01/2012 23:08, Renato Utsch wrot

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Renato Utsch
Make, but I think that when setting CMAKE_BUILD_TYPE to "ReMinSize" it should set the standard to it. Sad it doesn't do that :( So, anyone knows any other way? Like the variable that cmake sets when using --config Release when calling it from the command line ? Renato 2012/1

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Renato Utsch
>My current work-around is to peg all of the output directories for all >the active configurations to the same directory - that negates much of >the benefit of multiple-configuration IDE options, but does at least >result in the expected run-from-build-directory behavior. (It works >for MSVC - we

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Renato Utsch
rs of working with Linux, OS X, Windows, Visual Studio, > Xcode, Makefiles. Don't fight the system, just adapt to it and move on. > >  I guess that was harsh. Sorry. Having said that I am very interested in > knowing the specific reasons why you need your executables in the > C

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Renato Utsch
Ok, I will look at that so. But and the second problem? How can I redirect from the debug/release folder to the / folder of the project? Renato 2012/1/8 Mateusz Loskot : > On 8 January 2012 16:04, Eric Noulard wrote: >> 2012/1/8 Renato Utsch : >>> So I can do this by add

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Renato Utsch
Good idea, I will try ^^ Renato 2012/1/8 Eric Noulard : > 2012/1/8 Renato Utsch : >> So I can do this by adding a command line parameter to do that. But >> can't I simply set an option that behaves exactly as --config Debug ? >> > > May be you could try to

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Renato Utsch
So I can do this by adding a command line parameter to do that. But can't I simply set an option that behaves exactly as --config Debug ? Renato 2012/1/8 John Drescher : > On Sun, Jan 8, 2012 at 10:30 AM, Mateusz Loskot wrote: >> On 8 January 2012 15:21, Renato Utsch wrote: >&

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Renato Utsch
/8 Mateusz Loskot : > On 8 January 2012 15:21, Renato Utsch wrote: >> Yes, but I want to be able to change with CMake, but if I can't do >> that, at least I want to be able to set the default to the Release >> version :X > > You have to understand there is differen

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Renato Utsch
Yes, but I want to be able to change with CMake, but if I can't do that, at least I want to be able to set the default to the Release version :X Renato 2012/1/8 Rolf Eike Beer : > Am Sonntag, 8. Januar 2012, 12:29:47 schrieb Renato Utsch: >> Hello, I have been experimenting s

[CMake] Some issues with visual studio

2012-01-08 Thread Renato Utsch
Hello, I have been experimenting some issue with visual studio and couldn't fix them, even when searching in google for help :O So, I have 2 main issues: 1. When CMake creates the visual studio solution, it configures to the "Debug win32" mode, but I wanted to be able to choose from "Release" to

Re: [CMake] Documentation request

2011-12-21 Thread Renato Utsch
o this frequently > enough that I thought I'd bring it up, but as I said before, if we're the > only ones who keep making these mistakes, then we can deal with it internally. > > Tim > > - Original Message - > From: "Renato Utsch" > To: cmake@cmake.or

Re: [CMake] Documentation request

2011-12-21 Thread Renato Utsch
ady said, all the old documentation (back to version 1.6, > AFAIK) is available on the wiki. > > Michael > > On 12/21/2011 01:12 PM, Renato Utsch wrote: >>> You ? >>> This represents a fair amount of work... >>> I bet that if no-one did it it is because it&#

Re: [CMake] Documentation request

2011-12-21 Thread Renato Utsch
er ones, or maybe everything in the documentation page... Renato 2011/12/21 Eric Noulard : > 2011/12/21 Renato Utsch : >> I had the same problem a yesterday (or the day before) with the >> string( FIND ) command... >> >> I tried to find the cmake 2.8.4 docs but I couldn'

Re: [CMake] Documentation request

2011-12-21 Thread Renato Utsch
I had the same problem a yesterday (or the day before) with the string( FIND ) command... I tried to find the cmake 2.8.4 docs but I couldn't. I think you should do it, or at least to issue a warning (in the documentation) in every command that wasn't introduced in CMake 2.8.0... Yes, the Python

[CMake] Fwd: Problem with string( FIND xxx ) in cygwin

2011-12-20 Thread Renato Utsch
Is there any substitute that could enable me to find a substring in a determinated string? Because I need to support 2.8.4 because of Cygwin... Renato 2011/12/20 Renato Utsch : > Ah, ok, thanks. > > Renato > > 2011/12/20 David Cole : >> The FIND subcommand for the string c

[CMake] Problem with string( FIND xxx ) in cygwin

2011-12-20 Thread Renato Utsch
I am using CMake 2.8.4 in cygwin (the version that comes with setup.exe), but it doesn't recognize the string( FIND <...> ) command, although it works in linux and windows very well. Is there any library I need to install in cygwin to make this work or the build from them is not working? Renato

[CMake] How to add "modifiers" to functions

2011-12-16 Thread Renato Utsch
I am trying to make a function that will check if the build is in-source or out-of-source. But I wanted to add a "REQUIRED" 'modifier' to the function, that if it finds that the build in in-source, and if we specify "REQUIRED" (as with, like, find_package() CMake command) it would show an error mes

[CMake] How to find list of directories

2011-12-15 Thread Renato Utsch
Hello, I am writing a plugin compiler that will do linke this: -- main plugin | CMakeLists.txt (in the plugin folder) -- example (example plugin) --| CMakeLists.txt (in the example folder) The CMakeLists.txt file inside the plugin folder will do a foreach() to use add_subdirecto

[CMake] Some suggestions to TestForPosix module I wrote

2011-12-14 Thread Renato Utsch
I wrote a TestForPosix module for looking if the system supports a POSIX / XPG / SUS standard and I wanted for you experts to look and criticize if you find anything wrong. I would also ask how can I make a request for it to be included in CMake 2.8.7, because it is (in my opinion) a very good cont

Re: [CMake] How to make a shared library to use relative paths to the executable

2011-12-07 Thread Renato Utsch
>I think it's $ORIGIN, not @ORIGIN. > >Alex This works with WIN files too? -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

[CMake] Program with Qt opening with a bash screen on windows before showing the gui...

2011-11-30 Thread Renato Utsch
Hello CMake guys... Well, I was writing a portable program using CMake that uses Qt as it's GUI framework... I compiled it on linux and it worked really well, no problems. But when compiling on Windows, the program opened a blank bash screen before opening the proper gui. I thought that this coul

[CMake] How to link against libraries in subdirectory (windows workaround)

2011-10-29 Thread Renato Utsch
Hello! Well, I am currently using cURL for a project of mine, but on windows I can't find the cURL library only using the find_package(CURL) provided with CMake, although it works fine with linux. So, I created a directory named "deps" in my source directory. How can I make the find_package to lo

[CMake] How to make a shared library to use relative paths to the executable

2011-10-25 Thread Renato Utsch
Hello! I am learning to use CMake and I found it very easy to use, very and very good. But I don't understand why it uses full paths instead of relative paths when linking shared/dynamic libraries. I am currently making a program that is only compiled to a folder, but not installed to the system (

[CMake] [CPACK] CPack not working properly

2011-08-23 Thread Renato Utsch
Hello CMake Experts! I don't know if it's here that I have to ask, so if I'm wrong, please tell me. I used the CPack and it stopped making the binary package at the middle of the process, running like this: - Run CPack packaging tool... CPack: Create package using STGZ CPack: Install project

[CMake] [CMAKE] Problem when moving an executable with a shared library

2011-08-23 Thread Renato Utsch
Hello CMake Experts! I don't know if it's here that I have to ask, so if I'm wrong, please tell me. I'm having a problem with CMake. Let me explain: I use CMake to build a program and a shared library (let me say, "hello" and "libhello.so"). When I use them from my build folder (if the folder w