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

2012-11-20 Thread Boards Killer
>>> I'm pretty sure LINK_DIRECTORIES should not be used in toolchain >>> if not use at all. >>> >>> The purpose of find_package is precisely to find the full path to libraries >>> thus not to need to use "LINK_DIRECTORIES". >> >> You are right. It seems that removing LINK_DIRECTORIES does the trick

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

2012-11-20 Thread Boards Killer
>> I'm pretty sure LINK_DIRECTORIES should not be used in toolchain >> if not use at all. >> >> The purpose of find_package is precisely to find the full path to libraries >> thus not to need to use "LINK_DIRECTORIES". > > You are right. It seems that removing LINK_DIRECTORIES does the trick! Oops

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

2012-11-20 Thread Boards Killer
Hi Vyacheslav, Salut Eric, Many thanks for your answers. >> I thought that adding a LINK_DIRECTORIES to the toolchain would do the >> trick, but no avail. > > I'm pretty sure LINK_DIRECTORIES should not be used in toolchain > if not use at all. > > The purpose of find_package is precisely to find

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

2012-11-19 Thread Eric Noulard
2012/11/19 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. When using: > FIND_PACKAGE(OpenSSL) > > The libraries (lssl, lcry

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. Whe