Re: [CMake] CMake : Setting up a continuous dashboard
On Thu, Aug 13, 2009 at 4:10 AM, Bill Hoffmanbill.hoff...@kitware.com wrote: Mathieu Malaterre wrote: Hi there, I do not understand why the following ctest script (*) does not work. I am not seeing the updated files on my cdash server (*) SET(CTEST_CHECKOUT_COMMAND ${CTEST_UPDATE_COMMAND} co https://path/to/csmtk/ csmtk) CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY}) FILE(WRITE ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt SITE:STRING=${CTEST_SITE} BUILDNAME:STRING=${CTEST_BUILD_NAME} CMAKE_GENERATOR:INTERNAL=Unix Makefiles ) SET(CTEST_CONTINUOUS_DURATION 900) SET(CTEST_CONTINUOUS_MINIMUM_INTERVAL 10) SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE TRUE) CTEST_START(Continuous) CTEST_UPDATE(SOURCE ${CTEST_SOURCE_DIRECTORY} RETURN_VALUE res) CTEST_CONFIGURE(BUILD ${CTEST_BINARY_DIRECTORY} RETURN_VALUE res) CTEST_BUILD(BUILD ${CTEST_BINARY_DIRECTORY} RETURN_VALUE res) CTEST_TEST(BUILD ${CTEST_BINARY_DIRECTORY} RETURN_VALUE res) CTEST_COVERAGE(BUILD ${CTEST_BINARY_DIRECTORY} RETURN_VALUE res) CTEST_SUBMIT(RETURN_VALUE res) You are mixing old and new style scripts. CTEST_CONTINUOUS_DURATION is not used in the new style scripts. Instead, you use while, something like this: while (${CTEST_ELAPSED_TIME} LESS 36000) set (START_TIME ${CTEST_ELAPSED_TIME}) ctest_start (Continuous) ctest_sleep( ${START_TIME} 300 ${CTEST_ELAPSED_TIME}) endwhile() I could not find any documentation on the wiki, so I simply created a new section and moved the existing one to 'old style': http://www.vtk.org/Wiki/CMake_Scripting_Of_CTest#Continuous_Builds_.28new_Style.29 Thanks ! -- Mathieu ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] find_package_version_check
Hi, I had to add a version check to on of my find modules in KDE. So I started and asked myself why do I have to right so much code to get a version check. This should be done by CMake and not by me. So I've created a function find_package_version_check() you can use. All you have to do is to set the version number. Example: find_package(LibSSH 0.3.2 EXACT) # check for the version and set it set(LibSSH_VERSION 0.4.0) find_package_version_check(LibSSH DEFAULT_MSG) Error: The installed LibSSH version 0.4.0 is too new, version 0.3.2 is required. Comments and improvements are very welcome :) Cheers, -- andreas signature.asc Description: This is a digitally signed message part. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] find_package_version_check
2009/8/13 Andreas Schneider m...@cynapses.org: Hi, I had to add a version check to on of my find modules in KDE. So I started and asked myself why do I have to right so much code to get a version check. This should be done by CMake and not by me. So I've created a function find_package_version_check() you can use. All you have to do is to set the version number. Example: find_package(LibSSH 0.3.2 EXACT) # check for the version and set it set(LibSSH_VERSION 0.4.0) find_package_version_check(LibSSH DEFAULT_MSG) Error: The installed LibSSH version 0.4.0 is too new, version 0.3.2 is required. Comments and improvements are very welcome :) Two comments: 1) You seems to forget to attach you CMake macro/function file for find_package_version_check? 2) Why is the existing find_package(LibSSH version EXACT) not sufficient for you? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] find_package_version_check
On Thursday 13 August 2009 10:55:30 Eric Noulard wrote: 2009/8/13 Andreas Schneider m...@cynapses.org: Hi, I had to add a version check to on of my find modules in KDE. So I started and asked myself why do I have to right so much code to get a version check. This should be done by CMake and not by me. So I've created a function find_package_version_check() you can use. All you have to do is to set the version number. Example: find_package(LibSSH 0.3.2 EXACT) # check for the version and set it set(LibSSH_VERSION 0.4.0) find_package_version_check(LibSSH DEFAULT_MSG) Error: The installed LibSSH version 0.4.0 is too new, version 0.3.2 is required. Comments and improvements are very welcome :) Two comments: 1) You seems to forget to attach you CMake macro/function file for find_package_version_check? Sorry, you can find it here: http://www.cynapses.org/tmp/patches/kde/FindPackageVersionCheck.cmake 2) Why is the existing find_package(LibSSH version EXACT) not sufficient for you? Well that's what this function supports. You have to write the code to do the version check or use my function. Example: http://www.cynapses.org/tmp/patches/kde/FindLibSSH.cmake -- andreas signature.asc Description: This is a digitally signed message part. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] find_package_version_check
On 13.08.09 10:55:30, Eric Noulard wrote: 2009/8/13 Andreas Schneider m...@cynapses.org: I had to add a version check to on of my find modules in KDE. So I started and asked myself why do I have to right so much code to get a version check. This should be done by CMake and not by me. So I've created a function find_package_version_check() you can use. All you have to do is to set the version number. Example: find_package(LibSSH 0.3.2 EXACT) # check for the version and set it set(LibSSH_VERSION 0.4.0) find_package_version_check(LibSSH DEFAULT_MSG) Error: The installed LibSSH version 0.4.0 is too new, version 0.3.2 is required. Comments and improvements are very welcome :) 2) Why is the existing find_package(LibSSH version EXACT) not sufficient for you? Because that means the package in question also needs to use cmake (or rather install the needed .cmake files for cmake to do the version check). However I think the find-module should use this new function, not the application's CMakeLists.txt. Andreas -- You have the capacity to learn from mistakes. You'll learn a lot today. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Problem using find_library() for Mac frameworks
On Thu, Aug 13, 2009 at 1:18 AM, Michael Wild them...@gmail.com wrote: On 13. Aug, 2009, at 1:14, Calder Coalson wrote: I have been torturing myself over the following short bit of code all day to no avail, so I'm sending out an email to this list in the hopes that someone can catch whatever stupid mistake I'm making. The code, which is supposed to find two dependencies for a project is run using find_package(MacDeps) from my main script. set(CMAKE_FIND_FRAMEWORK /Library/Frameworks /System/Library/Frameworks ~/Library/Frameworks ) This is invalid. Allowed values for CMAKE_FIND_FRAMEWORK are FIRST, LAST, ONLY and NEVER. See http://cmake.org/cmake/help/cmake2.6docs.html#command :find_library So just get rid of that set CMAKE_FIND_FRAMEWORK. The find_library should be able to find frameworks in the default locations without any special help -- it would only need special help if there were conflicting non-framework versions of the same libraries in other default library locations... HTH, David ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] CPack Error: Not enough items on list: CPACK_INSTALL_CMAKE_PROJECTS
Hi, My problem is that I can not get CPack to create an installer for my project. I have done this before with success, but this time I can not figure out the problem. I work in Visual Studio 2005 SP1. The project compiles without errors. When i try to build the PACKAGE project (this calls CPack), I get the error: CPack Error: Not enough items on list: CPACK_INSTALL_CMAKE_PROJECTS. CPACK_INSTALL_CMAKE_PROJECTS should hold quadruplet of install directory, install project name, install component, and install subdirectory. I have tried to remove all install commands and CPack commands except INCLUDE(CPack), but still the same error. I notice that the file CPackConfig.cmake contains the line: SET(CPACK_INSTALL_CMAKE_PROJECTS C:/_work/_SSR/IPR/projects/!Demo/build/dynamicvis;;ALL;/) But the file CpackSourceConfig.cmake contains the coresponding line SET(CPACK_INSTALL_CMAKE_PROJECTS ) I am hoping someone may have a clue to what is causing this. Thanks, Karl ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Problem getting out-of-source builds (yes I deleted CMakeCache.txt)
Hi guys, Does anyone know why I might be having trouble getting out-of-source builds? I have this directory structure: foo /build /src /CMakeLists.txt /library_A /CMakeLists.txt /a.cpp ... /library_B /CMakeLists.txt /b.cpp ... My goal is to have this work: cd foo/build cmake ../src/CMakeLists.txt make But my problems is that when I invoke 'cmake' as shown above, it places the build files under 'foo/src/', rather than under 'foo/build/'. I'm absolutely positive that the file 'foo/src/CMakeCache.txt' does not exist when I invoke cmake. I'm running CMake 2.6.2. Any ideas? Christian Convey Scientist Naval Undersea Warfare Centers Newport, Rhode Island, USA (phone) (401) 832-6824 (fax) (401) 832-4749 smime.p7s Description: S/MIME cryptographic signature ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] (no subject)
I have been torturing myself over the following short bit of code all day to no avail, so I'm sending out an email to this list in the hopes that someone can catch whatever stupid mistake I'm making. The code, which is supposed to find two dependencies for a project is run using find_package(MacDeps) from my main script. set(CMAKE_FIND_FRAMEWORK /Library/Frameworks /System/Library/Frameworks ~/Library/Frameworks ) This is invalid. Allowed values for CMAKE_FIND_FRAMEWORK are FIRST, LAST, ONLY and NEVER. See http://cmake.org/cmake/help/cmake2.6docs.html#command :find_library So what I SHOULD have been using was CMAKE_SYSTEM_FRAMEWORK_PATH. DOH! Sorry for the bother but thanks for the help. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] (no subject)
On Thu, Aug 13, 2009 at 10:34 AM, Calder Coalsonccoal.m...@gmail.com wrote: I have been torturing myself over the following short bit of code all day to no avail, so I'm sending out an email to this list in the hopes that someone can catch whatever stupid mistake I'm making. The code, which is supposed to find two dependencies for a project is run using find_package(MacDeps) from my main script. set(CMAKE_FIND_FRAMEWORK /Library/Frameworks /System/Library/Frameworks ~/Library/Frameworks ) This is invalid. Allowed values for CMAKE_FIND_FRAMEWORK are FIRST, LAST, ONLY and NEVER. See http://cmake.org/cmake/help/cmake2.6docs.html#command :find_library So what I SHOULD have been using was CMAKE_SYSTEM_FRAMEWORK_PATH. DOH! Sorry for the bother but thanks for the help. If your frameworks are located in the standard locations then you should NOT have to set ANYTHING. Just use the find_library() command as usual. If you install your frameworks in other locations then you are going to have to provide those locations to cmake. Mike Jackson ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Problem getting out-of-source builds (yes I deleted CMakeCache.txt)
On 13. Aug, 2009, at 16:24, Convey, Christian J CIV NUWC NWPT wrote: Hi guys, Does anyone know why I might be having trouble getting out-of-source builds? I have this directory structure: foo /build /src /CMakeLists.txt /library_A /CMakeLists.txt /a.cpp ... /library_B /CMakeLists.txt /b.cpp ... My goal is to have this work: cd foo/build cmake ../src/CMakeLists.txt that should be: cmake ../src Michael ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Problem getting out-of-source builds (yes I deleted CMakeCache.txt)
My goal is to have this work: cd foo/build cmake ../src/CMakeLists.txt that should be: cmake ../src Thanks. That did the trick. smime.p7s Description: S/MIME cryptographic signature ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] CPack Error: Not enough items on list: CPACK_INSTALL_CMAKE_PROJECTS
From CPack.cmake :cpack_set_if_not_set(CPACK_INSTALL_CMAKE_PROJECTS ${CMAKE_BINARY_DIR};${CMAKE_PROJECT_NAME};ALL;/) Looks like you do not have a PROJECT statement in your top level CMakeLists.txt file. If you did, the second component of CPACK_INSTALL_CMAKE_PROJECTS would not be the empty string. HTH, David On Thu, Aug 13, 2009 at 8:50 AM, Karl Reite karl.j.re...@sintef.no wrote: Hi, My problem is that I can not get CPack to create an installer for my project. I have done this before with success, but this time I can not figure out the problem. I work in Visual Studio 2005 SP1. The project compiles without errors. When i try to build the PACKAGE project (this calls CPack), I get the error: CPack Error: Not enough items on list: CPACK_INSTALL_CMAKE_PROJECTS. CPACK_INSTALL_CMAKE_PROJECTS should hold quadruplet of install directory, install project name, install component, and install subdirectory. I have tried to remove all install commands and CPack commands except INCLUDE(CPack), but still the same error. I notice that the file CPackConfig.cmake contains the line: SET(CPACK_INSTALL_CMAKE_PROJECTS C:/_work/_SSR/IPR/projects/!Demo/build/dynamicvis;;ALL;/) But the file CpackSourceConfig.cmake contains the coresponding line SET(CPACK_INSTALL_CMAKE_PROJECTS ) I am hoping someone may have a clue to what is causing this. Thanks, Karl ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Find module for the Subversion API
In case no one knows this, the Subversion API requires over 10 separate dependencies in order to build it into a fully-functional API. In other words, there are certain dependencies that are optional, but I'm assuming a case where they are all required as far as the Find module is concerned (i.e. it can't assume the user won't use certain features and thus is not allowed to omit those dependencies from its search). A list of a few that it requires: apr apr-util apr-iconv neon berkeleydb openssl There are many others it depends on. I had considered writing find modules for all of these, but there is one major thing stopping me. I do not have the knowledge or resources to write find modules for all of these myself. I would love more than anything to be able to write find modules for these and contribute them to the community. I have no experience with the MAC and no development experience with Linux. Only on Windows. Additionally, some of these libraries are so tricky to build on Windows that it would be difficult to setup a reliable way for the Find module to find these libraries. What I've been doing is maintaining a fixed list of libraries in my CMake scripts and just moving those dependencies in a predictable location so that I can hard-code the paths to those libraries and includes into my CMake projects. What would you guys do in this situation? I obviously could not reliably create find modules for these, given the reasons above. But also because there is no bold standard for find modules. Even when you do know what needs to be done to find these libraries, you have to know a standard way of setting it up that is acceptable to the CMake project. My head is clearly spinning on how to approach this... I have a lot of third party dependencies that I have to maintain lists of paths and files for just so I can set up my project with that information. - Robert Dailey ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] ccmake .
Once again: I am calling 'ccmake .', 'cmake-gui.' or 'make edit_cache' just to inspect the build settings. I quit with no changes saved. Then 'make' rebuilds the project, which is an obvious bug or *extremely* unexpected behavior. -- d o m i n i k s z c z e r b a , p h d . . . . . . . . . . . c o m p u t a t i o n a l l i f e s c i e n c e g r o u p . . . . . . . i t ' i s r e s e a r c h f o u n d a t i o n . . . . . . . . . . . . . . . . . . . . http://www.itis.ethz.ch ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] ccmake .
2009/8/13 Dominik Szczerba domi...@itis.ethz.ch: Once again: I am calling 'ccmake .', 'cmake-gui.' or 'make edit_cache' just to inspect the build settings. I quit with no changes saved. Then 'make' rebuilds the project, which is an obvious bug or *extremely* unexpected behavior. Which CMake version? Which OS? etc... May be you can give us a reproducable testcase? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Setting Link Library Dependencies Flag in VS 2005
Hello, I saw this issue in one of the email thread online. I am also facing the same issue. So, I am wondering, were anybody able to solve this issue? Problem description(from email from Anupam Malhotra): Let me tell u a small example: I have a project say master.sln and in that solution I am having 3 different projects(.vcproj) which are making three libraries: a.lib,b.lib,c.lib. Now using the command ADD_DEPENDENCIES, I am setting the project dependencies to specify that a.lib depends on b.lib and c.lib. Whenever we build a.lib, this would build b.lib and c.lib before it actually builds a.lib since b.lib and c.lib are the dependencies. In Visual Studio 6, once we specify these dependencies , after a.lib is built, all the symbols in b.lib and c.lib are linked into a.lib automatically. So in this case if I want to use a,b,c in another exe (say myexe), I can just link to a.lib. In this case b.lib and c.lib will automatically be linked into myexe However in VS 2005, b.lib and c.lib are not automatically linked into a.lib. So while building a.lib, we have to turn this parameter(Link Library Dependencies) on. If this parameter is turned off and we try to link a.lib with myexe, we get errors for all the symbols belonging to b.lib and c.lib since they are not linked into a.lib. Can anybody please help me on how to force b and c to link with a for Vstudio2005/2008 using cmake? Thanks, Hisham ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Setting Link Library Dependencies Flag in VS 2005
The answer is here: http://www.cmake.org/pipermail/cmake/2008-December/025814.html Is that the same thread you're referring to? Hint: use target_link_libraries instead of add_dependency. Clint Hisham Chowdhury wrote: Hello, I saw this issue in one of the email thread online. I am also facing the same issue. So, I am wondering, were anybody able to solve this issue? Problem description(from email from Anupam Malhotra): Let me tell u a small example: I have a project say master.sln and in that solution I am having 3 different projects(.vcproj) which are making three libraries: a.lib,b.lib,c.lib. Now using the command ADD_DEPENDENCIES, I am setting the project dependencies to specify that a.lib depends on b.lib and c.lib. Whenever we build a.lib, this would build b.lib and c.lib before it actually builds a.lib since b.lib and c.lib are the dependencies. In Visual Studio 6, once we specify these dependencies , after a.lib is built, all the symbols in b.lib and c.lib are linked into a.lib automatically. So in this case if I want to use a,b,c in another exe (say myexe), I can just link to a.lib. In this case b.lib and c.lib will automatically be linked into myexe However in VS 2005, b.lib and c.lib are not automatically linked into a.lib. So while building a.lib, we have to turn this parameter(Link Library Dependencies) on. If this parameter is turned off and we try to link a.lib with myexe, we get errors for all the symbols belonging to b.lib and c.lib since they are not linked into a.lib. Can anybody please help me on how to force b and c to link with a for Vstudio2005/2008 using cmake? Thanks, Hisham ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] linking with .so w/ non-standard names
Perhaps something like this: set( CMAKE_SHARED_LIBRARY_PREFIX_bak ${CMAKE_SHARED_LIBRARY_PREFIX} ) set( CMAKE_SHARED_LIBRARY_PREFIX ) find_library( ABCD_LIBRARY abcd ) set( CMAKE_SHARED_LIBRARY_PREFIX ${CMAKE_SHARED_LIBRARY_PREFIX_bak} ) target_link_libraries( a.out ${ABCD_LIBRARY} ) HTH Michael On 14. Aug, 2009, at 0:16, Clinton Stimpson wrote: How about this: target_link_libraries(a.out /path/to/abcd.so) If you use find_library(), then you should be getting full names already. Clint Kenneth Chang wrote: Hi, I have this third party library that has a .so named like abcd.so instead of libabcd.so. Putting the name in target_link_libraries( a.out abcd.so ) doesn't work because this generates -labcd on the link line and then ld can't find it. What do I need to do to get this to link? Thanks! Kenny ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake