CMake build not working on Linux #94

Open
thinxer opened this Issue Jul 4, 2013 · 4 comments

Comments

Projects
None yet
3 participants

thinxer commented Jul 4, 2013

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.

Gregwar commented Jul 4, 2013

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

thinxer commented Jul 4, 2013

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

thinxer commented Sep 4, 2013

Well, are there any updates to this issue?

Owner

hintjens commented Sep 4, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment