zeromq/zeromq3-x

CMake build not working on Linux

Opened this issue · 4 comments

As I am using CMake to manage my project, it is good to integrate the CMake building process into my project. However, the CMake file contains several errors which make it impossible to compile. Please fix.

I confirm that it seems weird, for instance why these flags are used since it really look like a windows thing?

# Optimization flags.
# http://msdn.microsoft.com/en-us/magazine/cc301698.aspx
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG")
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /LTCG")
set(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_MODULE_LINKER_FLAGS_RELEASE} /LTCG")

Yes. I suspect the CMakeLists.txt is used only for the Windows build.

I prefer CMake to autotools for managing a cross platform project.

On Thu, Jul 4, 2013 at 9:30 PM, Grégoire Passault
notifications@github.comwrote:

I confirm that it seems weird, for instance why these flags are used since
it really look like a windows thing?

Optimization flags.

http://msdn.microsoft.com/en-us/magazine/cc301698.aspx

set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG")
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /LTCG")
set(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_MODULE_LINKER_FLAGS_RELEASE} /LTCG")


Reply to this email directly or view it on GitHubhttps://github.com//issues/94#issuecomment-20477132
.

Well, are there any updates to this issue?

Hi Jlanfei,

Please make any patches you need to against the libzmq master, and discuss
on zeromq-dev. Thanks

-Pieter

On Wed, Sep 4, 2013 at 3:44 AM, Jianfei Wang notifications@github.comwrote:

Well, are there any updates to this issue?


Reply to this email directly or view it on GitHubhttps://github.com//issues/94#issuecomment-23760598
.