[CMake] -DCMAKE_BUILD_TYPE=Release breaks build process

2017-03-02 Thread Bernhard Seckinger
Hi all, I'm relatively new to cmake and tried to use it for one of my projects. Meanwhile I've got a working version, but when I try to build with -DCMAKE_BUILD_TYPE=Release the linker complains about missing functions. I guess, that this happens, because all the files are compiled separately

Re: [CMake] -DCMAKE_BUILD_TYPE=Release breaks build process

2017-03-02 Thread Bernhard Seckinger
Hi Jan, > just a general idea as how to approach this: > - make a clean cmake directory and try again, or at least remove the > CMakeCache.txt I'm allready doing this all the time... :-) > - if you use the make generator, add -DCMAKE_VERBOSE_MAKEFILE=ON when > calling cmake to know what exactly

Re: [CMake] CPACK, generating deb packages: md5sums and wrong directory permissons

2017-03-08 Thread Bernhard Seckinger
Hi Domen, > This came up in the past and if I recall correctly the only workaround was > the install(DIRECTORY ... DIRECTORY_PERMISSIONS) that you mentioned. Please > file a bug report for this one. Where is the best place to do so? Berni -- -- Meine Rätselwebseite: www.croco-puzzle.com --

[CMake] Adding a link?

2017-03-06 Thread Bernhard Seckinger
Hi all, I've got a project where meanwhile everything works, using cmake, but a tiny detail. I've got a frontend which consists of several php files. I copy them into a subfolder of share/ with the install command. Now I need a symlink from bin/croco to share/croco/main.php that is, after

Re: [CMake] Adding a link?

2017-03-06 Thread Bernhard Seckinger
Hi Roger, > install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E > create_symlink bzip2 > \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/bunzip2\")" > COMPONENT "runtime") Hi thanks, that works when I add install(DIRECTORY DESTINATION

Re: [CMake] -DCMAKE_BUILD_TYPE=Release breaks build process

2017-03-03 Thread Bernhard Seckinger
> My advice for putting together that bug report is to create the > simplest standalone example of the problem that is possible (e.g., > consiting of a CMakeLists.txt file that builds and installs a "hello, > world" D application + D language source code for that application. After one mornings

[CMake] CPACK, generating deb packages: md5sums and wrong directory permissons

2017-03-08 Thread Bernhard Seckinger
Hi all, I'm using cpack to generate a debian package. There are two things that look like bugs in cpack to me (although it might also be, that I got something wrong): a) Files, that I install with install(FILES ...) get the wrong name in the md5sum section. Names should be e.g. "usr/bin/croco",