Re: [CMake] [CMAKE] cmake_device_link.o: nvcc fatal: Unknown option 'Wl, -start-group'

2018-09-07 Thread Marc CHEVRIER
Hi, To avoid this, put link flags in ‘LINK_FLAGS’ target properly. ´target_link_libraries’ is populating ´LINK_LIBRARIES’ target property. Le sam. 8 sept. 2018 à 01:40, Alvin Chu a écrit : > Hi cmake team, > I'm using cmake 3.12.1, and building a project which has cuda codes, the > cmake file l

[CMake] [CMAKE] cmake_device_link.o: nvcc fatal: Unknown option 'Wl, -start-group'

2018-09-07 Thread Alvin Chu
Hi cmake team, I'm using cmake 3.12.1, and building a project which has cuda codes, the cmake file looks like, list(APPEND ALL_OBJECTS $) list(APPEND ALL_OBJECTS $) add_library(lib1 SHARED ${ALL_OBJECTS}) list(APPEND ALL_LIBRARIES -Wl,-start-group) list(APPEND ALL_LIBRARIES ${SOME_LIBS}) list(AP

Re: [CMake] Need info on how cmake messages output is formatted

2018-09-07 Thread Mateusz Loskot
On Fri, 7 Sep 2018 at 20:08, Martin Weber wrote: > Any pointers to cmake sources are also welcome. AFAIC, the message is printed via cmMessenger::DisplayMessage called by cmMessenger::IssueMessage which is typically called by cmake::IssueMessage So, searching the CMake sources for invocations of

[CMake] Need info on how cmake messages output is formatted

2018-09-07 Thread Martin Weber
Hi all, subject says most of it. I'm trying parse the output of cmake from the generation phase (-G option) in order to create error markers in Eclipse. Are there any general rules on how the output is structured, especially those multi-line messages? Any pointers to cmake sources are also welc

[CMake] [ANNOUNCE] CMake 3.12.2 available for download

2018-09-07 Thread Robert Maynard
We are pleased to announce that CMake 3.12.2 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ Thanks for your support! - Changes in 3.12.2 since 3.12.1: Brad

Re: [CMake] CheckSymbolExists / CheckCXXSymbolExists

2018-09-07 Thread Thompson, KT
Kevin, I use something like this: # Is HOST_NAME_MAX available? include( CheckSymbolExists ) check_symbol_exists( HOST_NAME_MAX “unistd.h winsock2.h” HAVE_HOST_NAME_MAX ) -kt From: CMake On Behalf Of K. Ebrahimp. Sent: Friday, September 7, 2018 6:07 AM To: cmake@cmake.org Subject: [CMake] Chec

[CMake] CheckSymbolExists / CheckCXXSymbolExists

2018-09-07 Thread K. Ebrahimp.
hi all can anybody help me with a working example of CheckSymbolExists / CheckCXXSymbolExists I want to check if a some define exists in my header file example1.h of clib1 and/or c++lib2 depending on the result I want to add/remove some tests thanks in advance Kevin -- Powered by www.kitw