Re: [CMake] [cmake-developers] setting LINKER_LANGUAGE still adds -lstdc++

2012-10-08 Thread Eric Noulard
2012/10/9 James Bigler : > > I spent some time in the debugger to try and understand why CMake is making > the decisions it is. It comes down to this function which loops over all > the LinkClosures and calls AddImplicitLinkInfo for all languages that > *don't* match the language of the target. >

Re: [CMake] setting LINKER_LANGUAGE still adds -lstdc++

2012-10-08 Thread Eric Noulard
2012/10/9 James Bigler : > In my project I need to manually link against a special version of > libstdc++, so I manually set the target link language to C and then add my > special library to the link line. On Linux this seems to work just fine, > but on OSX it still add -lstdc++ to the link like.

Re: [CMake] setting LINKER_LANGUAGE still adds -lstdc++

2012-10-08 Thread James Bigler
On Mon, Oct 8, 2012 at 10:40 PM, James Bigler wrote: > In my project I need to manually link against a special version of > libstdc++, so I manually set the target link language to C and then add my > special library to the link line. On Linux this seems to work just fine, > but on OSX it still

[CMake] link errors using OpenMP

2012-10-08 Thread Matthew Woehlke
When I write a simple program using OpenMP, with a CMakeLists.txt like: find_package(OpenMP REQUIRED) add_definitions(${OpenMP_CXX_FLAGS}) add_executable(foo foo.cpp) I get link errors: foo.cpp: undefined reference to `omp_get_num_threads' foo.cpp: undefined reference to `omp_get_thread_num' ..

[CMake] New wiki page "CMake Live Cycle Considerations"

2012-10-08 Thread Alexander Neundorf
Hi, I just found this new page in the cmake wiki and I think this is very useful information: http://www.cmake.org/Wiki/CMake_Live_Cycle_Considerations Please help keeping it up-to-date Great work, Jzarl ! :-) Alex -- Powered by www.kitware.com Visit other Kitware open-source projects at htt

Re: [CMake] How to get current user?

2012-10-08 Thread Eric Clark
Thank you Nils! I actually just figured out that I would have to use the environment variables and they work just fine... I was just wondering if CMake had a variable for it or not... Eric From: Nils Gladitz [mailto:glad...@sci-vis.de] Sent: Monday, October 08, 2012 11:40 AM To: Eric Clark Cc:

Re: [CMake] How to get current user?

2012-10-08 Thread Nils Gladitz
I'd try $ENV{USERNAME} on windows and otherwise $ENV{USER}. Nils On 10/08/2012 06:10 PM, Eric Clark wrote: Hello All, Can anyone tell me if there is a variable or command that will return me the name of the current user? Thank You, Eric Clark - Code Magician 850.678.5222 ecl...@ara.com

Re: [CMake] CPACK_NSIS_EXTRA_PREINSTALL_COMMAND Not Working as Expected

2012-10-08 Thread dan h .
Any thoughts about this issue? Regards, Dan -- 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 subscri

[CMake] How to get current user?

2012-10-08 Thread Eric Clark
Hello All, Can anyone tell me if there is a variable or command that will return me the name of the current user? Thank You, Eric Clark - Code Magician 850.678.5222 ecl...@ara.com To be fond of something is better than merely to know it, and to find joy in it is better t

[CMake] Python: site-packages vs. dist-packages

2012-10-08 Thread Nico Schlömer
Hi all, I have a CMake build for a Python package where the installation directory is SET(PyTrilinos_INSTALL_DIR ${PyTrilinos_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/MyPackage CACHE PATH "The path where MyPackage will be installed" ) This creates a problem for a default

Re: [CMake] Accessing intermediate Visual Studio output files

2012-10-08 Thread Petr Kmoch
Hi Arindam. AFAIK, there is no such variable (I'd love to be proven wrong). What I currently do is hard-code the path: ${${projectName}_BINARY_DIR}/${targetName}.dir/... Petr On Sat, Oct 6, 2012 at 1:07 PM, Arindam Mukherjee < arindam.muker...@gmail.com> wrote: > Hi, > > I am using cmake to gen