Skip to content

Small fixes for MSVC support.#24

Open
bluescarni wants to merge 1 commit intocbecker:masterfrom
bluescarni:msvc_fixes
Open

Small fixes for MSVC support.#24
bluescarni wants to merge 1 commit intocbecker:masterfrom
bluescarni:msvc_fixes

Conversation

@bluescarni
Copy link

While packaging iiboost 0.2 for conda, I ran into some issues while building on Windows with MSVC. Some of these issues have been solved already in master, for the remaining ones I had to apply the changes in this PR. It is mostly about avoiding GCC-specific flags and minor header/macros fixes.


if(NOT MSVC)
set(RANDOMLIB_CMAKE_ARGS ${RANDOMLIB_CMAKE_ARGS} "-DCMAKE_C_FLAGS=-fpic" "-DCMAKE_CXX_FLAGS=-fpic")
endif()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to just change this to set CMAKE_POSITION_INDEPENDENT_CODE instead.

@cbecker
Copy link
Owner

cbecker commented May 24, 2017

Thanks for the PR. Could you change the code to use CMAKE_POSITION_INDEPENDENT_CODE, as suggested by @jakirkham ?

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

Successfully merging this pull request may close these issues.

3 participants