Re: [CMake] CMake toolchain and FIND_PACKAGE(OpenSSL)

2012-11-19 Thread Vyacheslav Karamov
Hi, try setting packagename_DIR before FIND_PACKAGE() 19.11.2012 14:41, Boards Killer ?: Hi CMake Community ! I am writing a CMake toolchain to cross compile our CMake project with the Ubuntu ARM Linux toolchain. The CMake toolchain is given below. I am facing the following problem.

Re: [CMake] Change RPATH at the packaging stage

2012-11-02 Thread Vyacheslav Karamov
@pack_version@) set(CPACK_PACKAGE_FILE_NAME @proj_name@-${CPACK_PACKAGE_VERSION}r@revision@-${CPACK_SYSTEM_NAME}) --CPackOptions.cmake.in--- 02.11.2012 11:06, Eric Noulard пишет: 2012/11/1 Vyacheslav Karamov ubuntul...@yandex.ru: Hi All! Is it possible

Re: [CMake] Change RPATH at the packaging stage

2012-11-02 Thread Vyacheslav Karamov
(CPACK_PACKAGING_INSTALL_PREFIX ${install_dir}) set(CMAKE_INSTALL_RPATH ${install_dir}) endif() 02.11.2012 16:40, Vyacheslav Karamov пишет: Thank you very much, Eric! It works! --- CMakeLists.txt -- include (FindSubversion) if (NOT Subversion_FOUND) message(FATAL_ERROR Please install

[CMake] Change RPATH at the packaging stage

2012-11-01 Thread Vyacheslav Karamov
Hi All! Is it possible to change rpath at the packaging stage? I have CMake based project with CPack directives in its CMake script: if(${CMAKE_SYSTEM_NAME} STREQUAL Linux AND EXISTS ${CMAKE_ROOT}/Modules/CPack.cmake) SET(install_dir /opt/chatterbox) SET(CMAKE_SKIP_BUILD_RPATH

[CMake] Variable target name visible at the top level

2012-10-26 Thread Vyacheslav Karamov
Hi All! I have project with the structure similar to this worker | | | chatterbox | || | |CMakeLists.txt | | | externals | || | |sndlib | | | | | CMakeLists.txt | CMakeLists.txt | CMakeLists.txt $ cat

Re: [CMake] Variable target name visible at the top level

2012-10-26 Thread Vyacheslav Karamov
Thank you, but if I need variable two level up? 26.10.2012 12:07, Rolf Eike Beer пишет: On Fr., 26. Okt. 2012 10:22:51 CEST, Vyacheslav Karamov ubuntul...@yandex.ru wrote: Hi All! I have project with the structure similar to this set (snd_lib sndlib) add_library(${snd_lib} SHARED ...) How

Re: [CMake] Variable target name visible at the top level

2012-10-26 Thread Vyacheslav Karamov
26.10.2012 12:16, Eric Noulard пишет: 2012/10/26 Vyacheslav Karamov ubuntul...@yandex.ru: Hi All! I have project with the structure similar to this worker | | | chatterbox | || | |CMakeLists.txt | | | externals | || | |sndlib

Re: [CMake] Cmake link trouble in Windows

2012-10-23 Thread Vyacheslav Karamov
Hi! 1. I don't understand what did you mean, but I guess you want to create library test ADD_LIBRARY(test SHARED ${FAN_SRC}) then you wanted to specify in which directory some libraries should be searched LINK_DIRECTORIES(${ACE_LIB_DIR}) and then you tried to link library ACE with your

[CMake] target_link_libraries fails if one of the libraries is NOTFOUND

2012-10-14 Thread Vyacheslav Karamov
(do_scoring_debug do_scoring) endif() but it seems to strange why should I need it. ___ WBR, Vyacheslav Karamov. -- 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

Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-05 Thread Vyacheslav Karamov
Hi! It's pity, but CMAKE_BUILD_TYPE is empty for CMake Visual Studio generator. 04.05.2012 23:40, Tim Gallagher ???: Put an: if(CMAKE_BUILD_TYPE STREQUAL Debug) endif() guard around the set_property call. Tim

[CMake] Setting Header Search Path in Xcode project

2012-04-27 Thread Vyacheslav Karamov
Hi All! I have problem with CMake 2.8.8 in OS X Lion. CMake include_directories() doen't add Header Search Path to CMake-generated Xcode project. WBR, Vyacheslav. -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Setting Header Search Path in Xcode project

2012-04-27 Thread Vyacheslav Karamov
Problem solved by removing Fink version and installing CMake from cmake.org 27.04.2012 18:56, Vyacheslav Karamov написал: Hi All! I have problem with CMake 2.8.8 in OS X Lion. CMake include_directories() doen't add Header Search Path to CMake-generated Xcode project. WBR, Vyacheslav

[CMake] How to add dependency on parent directories?

2012-04-25 Thread Vyacheslav Karamov
Hi All! My project's (named Compare) structure is similar to this: Root | SphinX | sphinxbase (autotools project) Sound | |-DoScoring (my Cmake-based project) |-Compare (my Cmake-based project) |-CMakeLists.txt |-src (source files

[CMake] target_link_libraries can't link shared libraries not listed in LD_LIBRARY_PATH

2012-04-23 Thread Vyacheslav Karamov
Hi All! I have a problem with target_link_libraries. It can't link with shared libraries not from directory listed in LD_LIBRARY_PATH. 1. When I try to link shared library with the full path obtained from find_library, my library is passed to gcc without -l option as ordinary object file.

Re: [CMake] target_link_libraries can't link shared libraries not listed in LD_LIBRARY_PATH

2012-04-23 Thread Vyacheslav Karamov
Pakulat ???: Hi, On Mon, Apr 23, 2012 at 13:24, Vyacheslav Karamov ubuntul...@yandex.ru mailto:ubuntul...@yandex.ru wrote: Hi All! I have a problem with target_link_libraries. It can't link with shared libraries not from directory listed in LD_LIBRARY_PATH. 1. When I try to link

[CMake] COMPILE_DEFINITIONS_Debug doesn't work in Windows

2012-04-17 Thread Vyacheslav Karamov
Hi All! I need to add some preprocessor definitions to my target. Here is the code: if (WIN32) set (COMPILE_DEFINITIONS_Debug _DEBUG USE_MP3READER2 _EXPORTS _USRDLL _CRT_SECURE_NO_WARNINGS _USE_32BIT_TIME_T ) set (COMPILE_DEFINITIONS_Release NDEBUG

Re: [CMake] COMPILE_DEFINITIONS_Debug doesn't work in Windows

2012-04-17 Thread Vyacheslav Karamov
It also doesn't work set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_DEBUG USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T) set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_RELEASE USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T)

Re: [CMake] COMPILE_DEFINITIONS_Debug doesn't work in Windows(SOLVED)

2012-04-17 Thread Vyacheslav Karamov
;_USE_32BIT_TIME_T) else(WIN32) set_property(TARGET ${lib_name} PROPERTY COMPILE_DEFINITIONS_DEBUG USE_MP3READER2) set_property(TARGET ${lib_name} PROPERTY COMPILE_DEFINITIONS_RELEASE USE_MP3READER2) endif(WIN32) works fine, thanks! 17.04.2012 11:19, Vyacheslav Karamov написал: It also

[CMake] find_library in Windows

2012-04-17 Thread Vyacheslav Karamov
Hi All! I have a problem with find_library in Windows. It does find static library, but not import library. It's confusing to me. if (${CMAKE_SYSTEM_NAME} STREQUAL Windows) find_library(spinx NAMES sphinxbase ${CMAKE_CURRENT_SOURCE_DIR}/../../Sphinx/sphinxbase/bin/Release )

Re: [CMake] COMPILE_DEFINITIONS_Debug doesn't work in Windows

2012-04-17 Thread Vyacheslav Karamov
Yes I do. 17.04.2012 11:49, Rolf Eike Beer написал: It also doesn't work set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_DEBUG USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T) set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_RELEASE

Re: [CMake] find_library in Windows

2012-04-17 Thread Vyacheslav Karamov
/sphinxbase/bin/Debug DOC SphinX debug library ) endif() 17.04.2012 11:47, Vyacheslav Karamov написал: Hi All! I have a problem with find_library in Windows. It does find static library, but not import library. It's confusing to me. if (${CMAKE_SYSTEM_NAME} STREQUAL Windows) find_library

Re: [CMake] find_library in Windows

2012-04-17 Thread Vyacheslav Karamov
When I specified full library name with extension find_library worked. But still have both debug and release versions of library being linked with my target. 17.04.2012 12:13, Vyacheslav Karamov написал: This code doesn't work also: if (${CMAKE_SYSTEM_NAME} STREQUAL Windows) find_library

Re: [CMake] find_library in Windows(SOLVED)

2012-04-17 Thread Vyacheslav Karamov
I'm happy. It works! target_link_libraries(${lib_name} debug ${do_scoring_debug} debug ${spinx_debug} optimized ${do_scoring} optimized ${spinx} ) 17.04.2012 14:59, Vyacheslav Karamov написал: When I specified full library name with extension find_library worked. But still have both debug

[CMake] How to find MinGW static library in Windows?

2012-04-17 Thread Vyacheslav Karamov
Hi All! I have some MinGW static libraries and I need to use them in VS2008 project which is generated by CMake. if (${CMAKE_SYSTEM_NAME} STREQUAL Windows) set(CMAKE_FIND_LIBRARY_PREFIXES ${CMAKE_FIND_LIBRARY_PREFIXES} lib) set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})