zeromq3-x icon indicating copy to clipboard operation
zeromq3-x copied to clipboard

CMake build not working on Linux

Open thinxer opened this issue 12 years ago • 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.

thinxer avatar Jul 04 '13 03:07 thinxer

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")

Gregwar avatar Jul 04 '13 13:07 Gregwar

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 [email protected]:

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/zeromq/zeromq3-x/issues/94#issuecomment-20477132 .

thinxer avatar Jul 04 '13 13:07 thinxer

Well, are there any updates to this issue?

thinxer avatar Sep 04 '13 01:09 thinxer

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 [email protected]:

Well, are there any updates to this issue?

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

hintjens avatar Sep 04 '13 07:09 hintjens