Closed gyulalaszlo closed 9 years ago
Hello, I agree having a CMake build system is a nice addition. However, I pulled your branch but cannot manage to build through CMake.
Here is the log:
-- The C compiler identification is GNU 4.9.1 -- The CXX compiler identification is GNU 4.9.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done CMake Error at CMakeLists.txt:102 (add_library): Objects of target "zmqpp_objects" referenced but no such target exists.
CMake Error: CMake can not determine linker language for target: zmqpp CMake Error: Cannot determine link language for target "zmqpp". -- Generating done -- Build files have been written to: /tmp/zmqpp/build
I am running Debian. (cmake version 3.0.2)
Hi!
Sorry, my bad, messed up the merge squash. Should be fixed now.
Hi,
This effectively fixes some errors, but I cannot build tests (or examples). The include directories are wrong when building tests/examples project ("zmqpp/context.hpp" can't be found).
adding ${CMAKE_CURRENT_SOURCE_DIR}/src
in a general include_directories()
seems to fix it. I'm not very proficient at CMake so not sure about how good this is.
Can you build test w/o problem?
Hi!
My bad again. Yes, to build the tests (or the client or the example) that include_directories is needed.
I also could not test building or using the shared library with shared libzmq.
ps: thank you for your patience, and sorry for this amateurishness, here is the reason it built on my system:
Hey,
No problem, thank you for your PR and CMake support.
This has been so far only tested on OSX 10.9 with Clang.