[CMake] Trouble with FindPNG module

2017-04-21 Thread Robert Dailey
I'm running CMake 3.8.0 on Ubuntu 14. I invoke the following: find_package(PNG REQUIRED) Which gives me the output in CMake: Could NOT find PNG (missing: PNG_LIBRARY) (found version "1.2.50") The CMakeCache.txt file has these variables set: PNG_LIBRARY_DEBUG:FILEPATH=PNG_LIBRARY_DEBUG-NOTFOUND

Re: [CMake] Overriding the include path, library path of OpenSSL, Zlib and libcurl

2017-04-21 Thread Michael Ellery
after find_package is invoked, several variables will be set. You use these to augment your compiler and linker information, e.g.: target_include_directories(mytarget $ZLIB_INCLUDE_DIRS) target_link_libraries(mytarget $ZLIB_LIBRARIES) …and so on for other modules you find (OpenSSL, for example).

Re: [CMake] Overriding the include path, library path of OpenSSL, Zlib and libcurl

2017-04-21 Thread Alex Chen
Although cmake uses the path I supplied for OpenSSL and Zlib, I do not see the –I flag being used in compiling the code. (I set VERBOSE=1 to make to see what it does.) When I run ‘ldd’ against the resulting .so files, reference to libssl.so or libcrypto.so is empty, i.e ‘libssl.so => not found’

[CMake] add_custom_command on test input files

2017-04-21 Thread Olaf Peter
Hello, for my project I have a sub dir with test case which feeds the tests '*.input' and allows to check to output '*.expected'. For documentation purpose, I have a python script which generates a TestMatrix.rst file. Using CMake I have: dir structure: $root/{src,include,utils,test} test/

Re: [CMake] Overriding the include path, library path of OpenSSL, Zlib and libcurl

2017-04-21 Thread Alex Chen
Thanks for the help.  I will try that. Alex Chen From: Michael Ellery Date: Thursday, April 20, 2017 at 8:13 PM To: Alex Chen Cc: CMake Subject: Re: [CMake] Overriding the include path, library path of OpenSSL, Zlib and libcurl It doesn’t look like that find module directly support

Re: [CMake] Need code review of my android toolchain file

2017-04-21 Thread Volker Enderlein
Hi Robert, I would use file(TO_NATIVE_PATH "${_dir}" _dir) and file(TO_CMAKE_PATH "${_dir}" _dir) hope that helps, Cheers, Volker Am 21/04/2017 um 15:45 schrieb Robert Dailey: I guess the only feedback I really would like is if the path normalization I'm doing for CMAKE_ANDROID_NDK is necess

Re: [CMake] fftw library in cmake

2017-04-21 Thread aishwarya selvaraj
Thanks Nils for the input . On Fri, Apr 21, 2017 at 7:19 PM, Nils Gladitz wrote: > On 04/21/2017 03:40 PM, aishwarya selvaraj wrote: > > add_library(fftw STATIC IMPORTED) > > [...] > > TARGET_LINK_LIBRARIES(prose fftw ) > > [...] > > make[2]: *** No rule to make target `fftw-NOTFOUND', needed b

Re: [CMake] fftw library in cmake

2017-04-21 Thread Nils Gladitz
On 04/21/2017 03:40 PM, aishwarya selvaraj wrote: add_library(fftw STATIC IMPORTED) [...] TARGET_LINK_LIBRARIES(prose fftw ) [...] make[2]: *** No rule to make target `fftw-NOTFOUND', needed by `prose'. Stop. You are creating an IMPORTED target "fftw" but you aren't populating its IMPORT

Re: [CMake] Need code review of my android toolchain file

2017-04-21 Thread Robert Dailey
I guess the only feedback I really would like is if the path normalization I'm doing for CMAKE_ANDROID_NDK is necessary (converting backslashes to forward slashes). Will CMake translate the backslashes properly? Sometimes I use CMAKE_ANDROID_NDK in custom commands and custom targets to build absol

[CMake] fftw library in cmake

2017-04-21 Thread aishwarya selvaraj
Hi all , Below is my CMakelist.txt. I'm getting an error as mentioned below . I'm not to rectify it . Could anyone help me out here please ? ​CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(PROSE) ​ ExternalProject_Add(project_fftw #GIT_REPOSITORY https://github.com/FFTW/fftw3 URL "http://www.fft

Re: [CMake] Prevent libraries from linking twice during LLVM build

2017-04-21 Thread Sanjay Srivallabh Singapuram
Thanks a lot for the context Michael ! On Thu, 20 Apr 2017 at 22:03 Michael Kruse wrote: > The cmake mailing list may not have sufficient context, so let me add > some details. > > Polly is an extension library for LLVM. Both can be configured in > multiple configurations: > > LLVM can be > - A