[CMake] Last Call for Papers: GCIRE2016 - Philippines

2016-01-14 Thread Jackie Blanco
The Second International Conference on Green Computing, Intelligent and Renewable Energies (GCIRE2016) University of Perpetual Help System DALTA Las Piñas-Manila, Philippines February 24-26, 2016 http://sdiwc.net/conferences/gcire2016/ gcir...@sdiwc.net === T

[CMake] Interesting behavior of MAIN_DEPENDENCY in makefiles

2016-01-14 Thread James Bigler
Say you have a simple cpp file: cat > test.cpp int main() { return 0; } Then you have this as your CMakeLists.txt file: set(input_file test.cpp) set(generated_file ${CMAKE_CURRENT_BINARY_DIR}/${input_file}.blah${CMAKE_CXX_OUTPUT_EXTENSION}) add_custom_command( OUTPUT ${generated_file} COMMAN

Re: [CMake] cdash/ctest question

2016-01-14 Thread Alexander Neundorf
On Thursday, January 14, 2016 21:51:23 Biddiscombe, John A. wrote: > Apologies for posting a cdash question question to the cmake list… > > CDash plots the run-time of tests, which is very useful indeed, but it would > be even more useful if one could output a performance related ‘time’ from a > t

[CMake] Create both Windows UWP project and old Win32 console project in same solution.

2016-01-14 Thread Chad Vernon
Hello, Is there a way to create both a Windows UWP project and an old Win32 console project in same solution? I have a toolchain file that sets CMAKE_SYSTEM_NAME to WindowsStore in order to create the UWP project, but then any other add_executable call will also create a Windows 10 project. I wa

[CMake] cdash/ctest question

2016-01-14 Thread Biddiscombe, John A.
Apologies for posting a cdash question question to the cmake list… CDash plots the run-time of tests, which is very useful indeed, but it would be even more useful if one could output a performance related ‘time’ from a test where a specific feature was being benchmarked and one could see how it

Re: [CMake] Changing the the current generator in CMake GUI

2016-01-14 Thread Bill Hoffman
On 1/14/2016 3:02 PM, mozzis wrote: I was able to edit CMakeCache.txt and CPackConfig.cmake (with CMake GUI closed) I changed CMAKE_GENERATOR:INTERNAL=Visual Studio 10 2010 Win64 to CMAKE_GENERATOR:INTERNAL=Visual Studio 10 2010 and then in general looked for the string "64" and made app

[CMake] How do I create targets first and add sources later?

2016-01-14 Thread Nicholas Braden
I often find it more convenient to call add_library() and add_executable() first, apply properties to them etc., and then later add the sources to them with target_sources() (usually in other CMake files via add_subdirectory). Obviously, all my targets will eventually have sources added. However,

Re: [CMake] Changing the the current generator in CMake GUI

2016-01-14 Thread mozzis
I was able to edit CMakeCache.txt and CPackConfig.cmake (with CMake GUI closed) I changed CMAKE_GENERATOR:INTERNAL=Visual Studio 10 2010 Win64 to CMAKE_GENERATOR:INTERNAL=Visual Studio 10 2010 and then in general looked for the string "64" and made appropriate changes. I then started CMake

Re: [CMake] find_library

2016-01-14 Thread Chuck Atkins
Hi Vania, find_library(SYSC_LIB systemc PATHS "${SYSTEMC_PATH}" > PATH_SUFFIXES lib-linux64 lib64-linux lib64-linux64) > In this first call, SYSTEMC_PATH is being dereferenced as a CMake variable. This works because in your invocation of CMake: cmake -G "Unix Makefiles" -DSYSTEMC

Re: [CMake] finding if feature is supported by host

2016-01-14 Thread Petr Kmoch
Hi Vania. A quick look a CMake docs will show you CMake's try_compile() command: https://cmake.org/cmake/help/latest/command/try_compile.html (There is also a try_run(), if required). I believe that's precisely what you want. Petr On Thu, Jan 14, 2016 at 5:44 PM, Vania Joloboff wrote: > Hi >

[CMake] finding if feature is supported by host

2016-01-14 Thread Vania Joloboff
Hi I can find if an include file exists with CHECK_INCLUDE_FILE But I want to know if a particular feature is supported in our case we need to know if the mmap call exists and whether it supports the MAP_ANONYMOUS feature With autoconf, I can use AC_TRY_COMPILE to try compiling a program using th

[CMake] Fwd: FILE(UPLOAD) doesn't seem to respect custom CA settings while DOWNLOAD does

2016-01-14 Thread Sergey Zakharchenko
Hello, I'm trying to get CMake to talk to an SSL server using a self-signed certificate. It works just fine with downloads. The certificate path appears in the LOG: successfully set certificate verify locations: CAfile: /path/to/my/certificate.pem CApath: /etc/ssl/certs and the TLS handshake

Re: [CMake] find_library

2016-01-14 Thread CHEVRIER, Marc
Defining a variable using -D option does not put this one in the environment (i.e. system environment) so using ENV will fails... On 14/01/16 10:28, "CMake on behalf of Vania Joloboff" wrote: >I am running cmake 3.2.2 on Linux 64 bits > >I run cmake with > > cmake -G "Unix Makefiles" -DSYST

[CMake] find_library

2016-01-14 Thread Vania Joloboff
I am running cmake 3.2.2 on Linux 64 bits I run cmake with cmake -G "Unix Makefiles" -DSYSTEMC_PATH=$HOME/systemc-2.3.1/ In my CMakeLists.txt, If I put find_library(SYSC_LIB systemc PATHS "${SYSTEMC_PATH}" PATH_SUFFIXES lib-linux64 lib64-linux lib64-linux64) it works. If I p

Re: [CMake] using macros

2016-01-14 Thread Petr Kmoch
Hi Owen. As a sanity check, the definition of the macro in the toplevel CMakeList comes *before* the add_subdirectory() command for the one which errors out, right? Petr On Thu, Jan 14, 2016 at 8:25 AM, Owen Hogarth II wrote: > I am trying to use a macro to enable c99 in some of my cmake modul

Re: [CMake] Update/Set _expectedTargets inside exports-release.cmake.

2016-01-14 Thread Rashad Kanavath
Hello Stephen, On Tue, Jan 12, 2016 at 8:58 PM, Stephen Kelly wrote: > Rashad Kanavath wrote: > > > I am having this when I build packages for debian where I split > components > > into separate packages project1-core, project1-gui etc.. > > I think you need to patch the buildsystems of the soft