Re: [CMake] MPI: Undefined symbol

2018-08-20 Thread Rafael Sadowski
On Mon Aug 20, 2018 at 04:24:07PM +0200, Florian Lindner wrote: > Hello, > > copied from a working MPI CMakeLists.txt: > > find_package(MPI REQUIRED) https://cmake.org/cmake/help/v3.0/module/FindMPI.html MPI__FOUND TRUE if FindMPI found MPI flags for MPI__COMPILERMPI

[CMake] libc++ usage in CMake with Clang?

2018-08-20 Thread Robert Dailey
Is the only way to use libc++ to muck with compile flags? Or is there a proper find module for this or something? Is there a more CMake-esque way of specifying the STL library to use with the toolchain? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Problem with creating shared library

2018-08-20 Thread Damir Porobic
Hi Eric, yes, this is the project. I have pushed my current state to this branch https://github.com/DamirPorobic/kImageAnnotator/tree/sharedLibTestBranch I've tried also without the generate_export_headers (cleaned everything up before trying out) but I get the same result.

Re: [CMake] [cmake-developers] RfD: deprecate link_directories() and link_libraries()

2018-08-20 Thread Rolf Eike Beer
Am Montag, 20. August 2018, 19:10:57 CEST schrieb Brad King: > On 08/15/2018 01:30 PM, Rolf Eike Beer wrote: > > My dislike against these functions is probably known, and now I would like > > to bring this to a new level: I would like to formally deprecate these > > functions. I don't think they

Re: [CMake] libc++ usage in CMake with Clang?

2018-08-20 Thread Stephen McDowell
Good question. The only official thing I could find that is _somewhat_ related is this: https://cmake.org/cmake/help/latest/variable/CMAKE_ANDROID_STL_TYPE.html#variable:CMAKE_ANDROID_STL_TYPE Doesn't really help if you aren't targeting Android though On Mon, Aug 20, 2018, 10:48 AM Robert

Re: [CMake] libc++ usage in CMake with Clang?

2018-08-20 Thread Thompson, KT
I'm also interested in the answer to Robert's question. I've been using set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -stdlib=libc++") but it seems like there should be a more elegant approach. -tk -Original Message- From: CMake On Behalf Of Robert Dailey Sent: Monday, August 20, 2018

[CMake] MPI: Undefined symbol

2018-08-20 Thread Florian Lindner
Hello, copied from a working MPI CMakeLists.txt: find_package(MPI REQUIRED) include_directories(${MPI_INCLUDE_PATH}) set(COMPILE_FLAGS ${COMPILE_FLAGS} ${MPI_COMPILE_FLAGS}) set(LINK_FLAGS ${LINK_FLAGS} ${MPI_LINK_FLAGS}) add_executable(StructureSolverParallel

[Cmake-commits] CMake branch, master, updated. v3.12.1-438-gb8dd624

2018-08-20 Thread Kitware Robot
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 07715d9..52bd817 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -1,5 +1,5 @@ # CMake version number components. set(CMake_VERSION_MAJOR 3) set(CMake_VERSION_MINOR 12) -set(CMake_VERSION_PATCH 20180820) +set(CMake_VER