Re: [CMake] Strange behavior with Nightly builds

2012-06-14 Thread NoRulez
Hello David,but the problem is, that the timestamp is one day behind, so this doesn't work and I get previous revisions. (Our nightly build starts at 23:00 and not at 1 am)However is there a way to update to the HEAD revision?Best RegardsAm 14. Jun 2012 um 15:05 schrieb David Cole :On Thu, Jun 14,

Re: [CMake] Cpack and output file naming

2012-06-14 Thread Eric Noulard
2012/6/15 Kim Kryger : > If you do this, you probably will also have to use this line as well: > > set( CPACK_TEMPORARY_PACKAGE_FILE_NAME > ${CMAKE_BINARY_DIR}/_CPack_Packages/win32/NSIS/${CPACK_OUTPUT_FILE_NAME} ) > > Referenced in this bug. > > I encountered this today, and CPack can generate the

Re: [CMake] "Mastering CMake": which cmake version?

2012-06-14 Thread Doug
Idly, I can't find anything in the book referencing 2.8.1, the closest I've noticed is some talk about 2.8.0-rc2. I haven't exhaustively searched or anything, just flicked through. ~ Doug. On Thu, Jun 7, 2012 at 11:19 PM, Bill Hoffman wrote: > On 6/7/2012 10:24 AM, Thompson, K T wrote: > >> On W

Re: [CMake] Generating source file one step before linking

2012-06-14 Thread Doug
Perhaps this is what you're looking for: http://www.cmake.org/cmake/help/v2.8.8/cmake.html#command:add_custom_command For example, this command copies a set of libraries into a directory: if(WIN32) foreach(ITEM ${DEP_SHARED_LIBRARIES}) add_custom_command(TARGET mytarget PRE_BUILD COMMAND ${C

Re: [CMake] More than one package source for a project.

2012-06-14 Thread Doug
On second thought, what you want to do might be some what more complicated than I first thought, but I don't see why you couldn't use the same approach with multiple components for multiple packages for what you want too. It's relatively trivial to generate the multiple packages if from components

Re: [CMake] More than one package source for a project.

2012-06-14 Thread Doug
Oddly, I was just doing that last night. Here's an example: https://github.com/shadowmint/cmake-multi-install If you run: mkdir build cd build cmake .. cmake -G DEB It'll build two debian packages. If you want RPMs I suspect you'll have to add: set(CPACK_RPM_COMPONENT_INSTALL ON) ...but you ge

Re: [CMake] Cpack and output file naming

2012-06-14 Thread Eric Noulard
2012/6/11 Totte Karlsson : > Hi, > How can I suppress version numbers(major, mior, patch in CPACK output on > windows? > > Also, how can one suppress the win32 prefix of the output name. Currently CPack names the package file using:CPACK_PACKAGE_FILE_NAME (this does not include the file extension)

Re: [CMake] CPack are not packing dll

2012-06-14 Thread Eric Noulard
2012/6/13 Totte Karlsson : > Hi, > > For a certain library, I changed my CMake file to using the following > > install ( >            TARGETS ${target} >            RUNTIME DESTINATION bin >            LIBRARY DESTINATION lib >            ARCHIVE DESTINATION lib >            COMPONENT c_api) > > >

[CMake] More than one package source for a project.

2012-06-14 Thread Darryl L. Pierce
Our project has several subprojects to it. What I would like to do is have some of those subprojects to package up their sources, which includes a generated file, as a separate source tarball from the overall one that's created with make package_source. Can someone point me to an example of doing

Re: [CMake] CPack are not packing dll

2012-06-14 Thread David Cole
You're using "COMPONENT" -- have you read up on componentized packaging with CPack? First google result for "CPack component" is: http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack HTH, David On Thu, Jun 14, 2012 at 1:21 PM, Totte Karlsson wrote: > Hi, > > Have anyone else encoun

Re: [CMake] CPack are not packing dll

2012-06-14 Thread Totte Karlsson
Hi, Have anyone else encountered the cpack not packing of installs in a install statement? Or should it be used differently? -totte On 6/12/2012 4:08 PM, Totte Karlsson wrote: Hi, For a certain library, I changed my CMake file to using the following install ( TARGETS ${target} RUNTIME DEST

Re: [CMake] Strange behavior with Nightly builds

2012-06-14 Thread David Cole
On Thu, Jun 14, 2012 at 3:07 AM, NoRulez wrote: > I think i fond the problem, but I don't know how to solve it. > > I have the following defined in the CTestScript.cmake: > if(${NEED_REPOSITORY_CHECKOUT}) > set(CTEST_CHECKOUT_COMMAND "${CTEST_UPDATE_COMMAND} co > ${REPOSITORY_URL} \"${CTEST_S

Re: [CMake] Strange behavior with Nightly builds

2012-06-14 Thread Richard Wackerbarth
I think that you are missing the point of "nightly" runs. The idea behind a nightly run is that each build-bot builds the SAME version of the code. Just checking out the HEAD for every build would be submitting one "continuous" (perhaps it should be called "head") build. The version built is what

[CMake] Preserving resource directory structure on bundle level in OSX and iOS

2012-06-14 Thread Daniel Dekkers
Hi, If we add a set of resources to an application (OSX or iOS) with... ADD_EXECUTABLE( ${APPNAME} MACOSX_BUNDLE ${ALLSOURCES} ${ALLRESOURCES} ) ... where ALLRESOURCES contains references with complete paths (ie /path/rsrc/images/image.png, /path/rsrc/xml/data.xml, etc...) and label these files

[CMake] Generating source file one step before linking

2012-06-14 Thread Johannes Bauer
Dear list, I'd like to know if the following is possible: in my old buildsystem (that I'm trying to convert to cmake) there is a script which runs just before the linking stage. It examines the created objects and then creates a source-file which needs to be linked in. The way this was done before

Re: [CMake] Strange behavior with Nightly builds

2012-06-14 Thread NoRulez
I think i fond the problem, but I don't know how to solve it.I have the following defined in the CTestScript.cmake:if(${NEED_REPOSITORY_CHECKOUT})    set(CTEST_CHECKOUT_COMMAND "${CTEST_UPDATE_COMMAND} co ${REPOSITORY_URL} \"${CTEST_SOURCE_DIRECTORY}\" -r HEAD")else()    set(CTEST_CHECKOUT_COMMAND