[CMake] PreprocessToFile

2018-05-05 Thread Kristian
Hi, I have a Visual Studio 2015 Solution with some C++ projects in it. I try to generate the same solution and the projects with CMake. Now, there is a part, where I do not know how to solve this. In a vcxproj file, there is something like this written: = false false

Re: [CMake] Create user and group with CPack

2017-07-20 Thread Kristian
hank you for your help. :) 2017-07-20 12:35 GMT+02:00 Eric Noulard : > > > 2017-07-20 12:01 GMT+02:00 Kristian : >> >> Hi, >> >> thank you for your reply. Yes, I add the script with >> > set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE >> > "${CMAKE_CU

Re: [CMake] Create user and group with CPack

2017-07-20 Thread Kristian
= And this is, what is being printed during installation: = Group 'web1' added with id '' useradd: group '' does not exist User 'web1' added. = 2017-07-20 11:17 GMT+02:00 Eric Noulard : > > > > 2017-07-20 10:39 GMT+02:00 Kristian : &g

[CMake] Create user and group with CPack

2017-07-20 Thread Kristian
Hi, I create a RPM package with CPack. When installing this package on a target system, it should create an additional user and group. My current solution is a postinstall script, wich runs at the end of the installation. There, I added commands to create a user and a group (groupadd, useradd). B

[CMake] RPM package and relocation

2017-05-10 Thread Kristian
Hi, I am creating an RPM package, which on a standard installation should install the file into /opt/ssp-suite directory. But I want to give the user the opportunity, to install the package into another directory. I am doing this with these lines: > set(INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/ssp-su

Re: [CMake] CPack - Transaction error

2017-05-09 Thread Kristian
Thank you, that helped! 2017-05-09 15:24 GMT+02:00 Domen Vrankar : >> Transaction check error: >> file /opt from install of ssp-suite-7.1-1.x86_64 conflicts with file >> from package filesystem-3.2-21.el7.x86_64 >> >> Error Summary > > > Directory /opt is already owned by filesystem package but

[CMake] CPack - Transaction error

2017-05-09 Thread Kristian
Hi, I want to generate a RPM package. My CMakeLists.txt looks loke this: ## cmake_minimum_required(VERSION 3.5) set(INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/ssp/) install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ssp-suite/" DESTINATION ${INSTALL_DIR}) install(PROGRAMS "${CMAKE

Re: [CMake] CPack change file extension

2016-08-26 Thread Kristian
> Do you have any special reason why your rename target depends on PACKAGE, is this the target which cpack is using? I think so ... 2016-08-26 20:01 GMT+02:00 tonka3...@gmail.com : > Hey Kristian, > > Thx for your answer. Iv've already done this like in your solution. I h

Re: [CMake] CPack change file extension

2016-08-26 Thread Kristian
Hey, you're working on Windows, right? I think you can do that if you create an additional target and call that target. So let's say, you have this 'hello.cpp', and you generate with CMake a solution. This is an example of a CMakeLists.txt > cmake_minimum_required(VERSION 3.4) > project(cpack_zi

Re: [CMake] Wrong version of cl.exe for x64

2016-08-22 Thread Kristian
Did you already tried to use the "Visual Studio 10 2010 Win64" generator? * https://cmake.org/cmake/help/v3.6/generator/Visual%20Studio%2010%202010.html * https://cmake.org/cmake/help/v3.6/manual/cmake-generators.7.html 2016-08-22 9:27 GMT+02:00 tonka tonka : > Hey, > > I have recently switched

Re: [CMake] first WARNING message swallows all previous STATUS messages in cmake configure

2016-06-18 Thread Kristian
I have some questions for clarification: Which CMake-Version do you use? Which OS do you use? And where is the output of CMake written to? 2016-06-18 8:31 GMT-04:00 Ilias Miroslav : > Dear experts, > > > we are employing CMake buildup system in our project > http://www.diracprogram.org.

Re: [CMake] cmake targeting vs2015 error

2016-06-15 Thread Kristian
Could you give us either the CMakeLists.txt or the whole cl command, which was called? Without of some more information, I could not give you a hint, where the problem is. 2016-06-15 14:43 GMT-04:00 Welson Sun : > cmake 3.4.3 on windows 7 targeting vs2015 error out: > > cl : Command line error D

Re: [CMake] execute_process, cmd /c and vcvarsall

2016-06-10 Thread Kristian
After some tries I found maybe a solution for you. In my small example, I had these lines, which are working: > set(HELLO1 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat") > execute_process(COMMAND ${HELLO1} && msbuild /help WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")

Re: [CMake] CPack and executable permissions on linux

2016-06-09 Thread Kristian
Thanks for all answers. I had to read the documentation before asking :-D I changed the line for the executable from > install(FILES ... into > install(PROGRAMS ... That worked and as far as i can see is sufficient for my requirements. 2016-06-08 20:09 GMT+02:00 Domen Vrankar : > > This could p

[CMake] CPack and executable permissions on linux

2016-06-08 Thread Kristian
Hey guys, I am creating a RPM package with CMake. Here is a small example of how it looks: cmake_minimum_required(VERSION 3.5) set(BOOST_LIB "${CMAKE_CURRENT_SOURCE_DIR}/boost") file(GLOB_RECURSE BOOST_LIBRARIES ${BOOST_LIB}/*) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/usr/bin/execut

Re: [CMake] Freetype on linux systems in non-standard directories

2016-06-07 Thread Kristian
Hey Andreas, thanks for your answer. Yes, that also works :) 2016-06-07 16:58 GMT-04:00 Andreas Naumann : > Hey Kristian, > > as the documentation > https://github.com/Kitware/CMake/blob/master/Modules/FindFreetype.cmake > at line 21 states, FREETYPE_DIR is an environment variabl

[CMake] Freetype on linux systems in non-standard directories

2016-06-07 Thread Kristian
Hey guys, I wanted to try something out with CMake and latest version of freetype (2.6.3). So I downloaded freetype, compiled it with the commands > ./configure --prefix=/home/kristian/Documents/freetype/freetype > make > make install After that, I created a small C++-file and a CMake

Re: [CMake] Problem building CMake with system OPENSSL

2016-06-07 Thread Kristian
What's the meaning of the bootstrap executable? I thought, when compiling CMake, it is sufficient to call ./configure and then make... 2016-06-07 15:13 GMT-04:00 Brad King : > On 06/07/2016 10:58 AM, Lowekamp, Bradley (NIH/NLM/LHC) [C] wrote: > > I tried out the 3.6.0-rc1 and my problem buildin

Re: [CMake] Problem building CMake with system OPENSSL

2016-06-05 Thread Kristian
Maybe you should add something like > include_directories(${OPENSSL_INCLUDE_DIR}) to your CMakeLists.txt ? 2016-06-03 10:27 GMT-04:00 Lowekamp, Bradley (NIH/NLM/LHC) [C] : > Hello, > > I am trying to build CMake on an old system with a new version of openssl. > My build script was working with C

Re: [CMake] issue with target_link_libraries and MSVC

2016-04-12 Thread Kristian
I'm not sure, but I think, you should consider 'set_target_properties' (https://cmake.org/cmake/help/v3.0/command/set_target_properties.html). E.g. target_link_libraries(my_target source1.cpp source2.cpp) set_target_properties(my_target PROPERTIES LINK_FLAGS "\openmp") 2016-04-12 17:29 GMT+02:

Re: [CMake] Fwd: CPack does not generate a RPM

2016-04-08 Thread Kristian
shall send > the attachment only to you two? > > Wang Peng (Rex) > Seat: 21F > HZ SE Team > +86018605811125 > > -Original Message- > From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of EXT Kristian > Sent: Friday, April 08, 2016 5:16 AM > To: Domen Vrankar

Re: [CMake] Fwd: CPack does not generate a RPM

2016-04-07 Thread Kristian
Thank you for your answer. Setting the variable CPACK_RPM_PACKAGE_AUTOREQ to "NO" worked. I also tried to produce a minimal example, which produces such error as the behaviour I described. But I couldn't generate such an example. I do not know currently, under which circumstances this happens :(.

[CMake] Fwd: CPack does not generate a RPM

2016-04-06 Thread Kristian
ION lib) ** then installation of my very simple project works and I am not getting any dependency resolution errors. -- Forwarded message -- From: Kristian Date: 2016-04-07 0:50 GMT+02:00 Subject: CPack does not generate a RPM To: cmake@cmake.org Hi, I have an error and

[CMake] CPack does not generate a RPM

2016-04-06 Thread Kristian
Hi, I have an error and I do not know, how to solve this error. I have an archive, where are some files. I want to generate a rpm package with the files, which are in that archive. So first, I extract that archive with a bash script. After that, the script calls "cpack -G RPM -V ." for this CMake

Re: [CMake] VERSION and SOVERSION in a module

2016-04-04 Thread Kristian
Thank you for your answer. It helped me a lot. 2016-04-04 12:07 GMT+02:00 Nils Gladitz : > On 04/04/2016 10:33 AM, Kristian wrote: >> >> Hey, >> >> I have a question. I have a project, which is compiled on two >> different build machines with ninja (trunk and bran

[CMake] VERSION and SOVERSION in a module

2016-04-04 Thread Kristian
Hey, I have a question. I have a project, which is compiled on two different build machines with ninja (trunk and branch). The CMakeLists.txt is the same when it comes to a part, where the VERSION and SOVERSION part is set through the function 'set_target_properties'. But on the first build machi

Re: [CMake] A function and its arguments

2016-02-28 Thread Kristian
You were right. Thank you! 2016-02-28 22:12 GMT+01:00 Nils Gladitz : > On 28.02.2016 21:57, Kristian wrote: >> >> [...] >> >> >> test_me(1 2 3) >> **

[CMake] A function and its arguments

2016-02-28 Thread Kristian
Hey, I have a question. I have read the article about functions: https://cmake.org/cmake/help/v3.0/command/function.html I tried to write myself a very simple function (nothing special) function(test_me add1 add2) message("test_me") message("

[CMake] CMake and BZip2

2016-02-11 Thread Kristian
Hey, I have a small C++ file, which uses some functions of the library bzip2. On a Debian derivate, I have installed needed packages with * sudo apt-get install bzip2 libzip2 libbz2-dev Here is my CMakeLists.txt: = project(bzip2Example) cmake_minimum_required(VERSI

[CMake] CMake and a simple java example

2015-12-07 Thread Kristian
Dear All, I am learning CMake, and one of my personal lessons is combine Java and CMake. I made a small example (HelloWorld.java): == public class HelloWorld { public static void main(String[] args) { System.out.println("Hey :)"); } } == And a CMakeLists.txt file

Re: [CMake] Visual Studio problem with many/long additional library paths

2006-04-20 Thread Kristian Nielsen
jects in the .sln), there is an implicit link of B into a implied. I wonder if there is a way to generage that with CMake, I tried just replacing TARGET_LINK_LIBRARIES with ADD_DEPENDENCIES, but that did not seem to work? I'll play a bit more with it and see if I can find something that works.

[CMake] Visual Studio problem with many/long additional library paths

2006-04-18 Thread Kristian Nielsen
in Visual Studio, I wondered if anyone has experienced this problem, and perhaps know of a workaround? Since CMake uses hardcoded paths, this problem is all the more likely to hit in CMake-generated projects. I wonder if there is another way to write the .vcproj files that avoid this limita