Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake build not working on Linux #94

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

CMake build not working on Linux #94

thinxer opened this issue Jul 4, 2013 · 4 comments

Comments

@thinxer
Copy link

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
Copy link

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
Copy link
Author

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
[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//issues/94#issuecomment-20477132
.

@thinxer
Copy link
Author

thinxer commented Sep 4, 2013

Well, are there any updates to this issue?

@hintjens
Copy link
Member

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

Well, are there any updates to this issue?


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants