Re: [CMake] Removing debug and optimized prefixes

2013-08-15 Thread Alvaro Aguilera
you are right! Thank you Alvaro On Do 15 Aug 2013 15:16:04 CEST, Rolf Eike Beer wrote: > Am 15.08.2013 14:03, schrieb Alvaro Aguilera: >> Thank you for responding. >> >> I found out that the problem was in the FindProtobuf module shipped with >> opensuse. >> As a workaround I'm using the followi

Re: [CMake] syntax error?

2013-08-15 Thread Brad King
On 08/15/2013 09:09 AM, Brad King wrote: > Fixed and test added: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9040ec91 Actually another side effect of the previous behavior that is good to fix is in a case like this: message(STATUS a # oops, forgot close paren message(STATUS b) Wit

Re: [CMake] Removing debug and optimized prefixes

2013-08-15 Thread Rolf Eike Beer
Am 15.08.2013 14:03, schrieb Alvaro Aguilera: Thank you for responding. I found out that the problem was in the FindProtobuf module shipped with opensuse. As a workaround I'm using the following line after find_package(Protobuf): list(REMOVE_ITEM PROTOBUF_LIBRARIES "debug" "optimized") Her

Re: [CMake] syntax error?

2013-08-15 Thread Brad King
On 08/15/2013 07:40 AM, David Cole wrote: > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b2ac3463b5ef5dfd3fc662c12cdd177e5dc1 > > git says it's only in 'next' and 'nightly' so far: Actually that one was rewritten and is in master: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=58e

[CMake] OpenCV compilation flags

2013-08-15 Thread Engin FIRAT
Hello, How can I run compiler with different flags for different opencv modules? Regards. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more informa

Re: [CMake] Removing debug and optimized prefixes

2013-08-15 Thread Alvaro Aguilera
Thank you for responding. I found out that the problem was in the FindProtobuf module shipped with opensuse. As a workaround I'm using the following line after find_package(Protobuf): list(REMOVE_ITEM PROTOBUF_LIBRARIES "debug" "optimized") Here are the calls to add_library() and target_link_lib

Re: [CMake] Removing debug and optimized prefixes

2013-08-15 Thread Eric Noulard
2013/8/15 Alvaro Aguilera : > Hello, > > I'm using cmake 2.8.11.2 under Linux to compile a small shared library. > The problem I have is that the cmake's link command prefixes some of the > libraries with "debug" and "optimized": > > (...) -loptimized /usr/local/lib64/libprotobuf.so -ldebug > /usr/

Re: [CMake] syntax error?

2013-08-15 Thread David Cole
Ah, you introduced a space after the "NOT" to silence the warning. I'm not sure why it is picky about that space not being there. Unintentionally. I never even saw the warning text locally. The text comes from this commit, which was rewritten and merged in very recently. http://cmake.or

[CMake] Removing debug and optimized prefixes

2013-08-15 Thread Alvaro Aguilera
Hello, I'm using cmake 2.8.11.2 under Linux to compile a small shared library. The problem I have is that the cmake's link command prefixes some of the libraries with "debug" and "optimized": (...) -loptimized /usr/local/lib64/libprotobuf.so -ldebug /usr/local/lib64/libprotobuf.so -ldebug -Wl (..

[CMake] find_package components required or not

2013-08-15 Thread Lars Lars
Hello, The find_package macro provides the keywords "REQUIRED" and "COMPONENTS". The docs state: "The REQUIRED option stops processing with an error message if the package cannot be found. A package-specific list of components may be listed after the REQUIRED option or after the COMPONENTS