Skip to content

Conversation

@jyhpsycho
Copy link

It will fix #116

@jyhpsycho
Copy link
Author

It may be fixed after checking whether Boost::iostreams and zlib is needed or not to build on windows platform as like:
if(CMAKE_WIN32) (old)
else(CMAKE_WIN32) (new)
endif(CMAKE_WIN32)

Copy link
Collaborator

@ricrogz ricrogz left a comment

Choose a reason for hiding this comment

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

Sorry for the (very) late review!

find_package(ZLIB REQUIRED)

target_link_libraries(test_coordgen coordgen ${maeparser_LIBRARIES} ${boost_link_options} Boost::unit_test_framework Boost::filesystem)
target_link_libraries(test_coordgen coordgen ${maeparser_LIBRARIES} ${boost_link_options} Boost::unit_test_framework Boost::iostreams Boost::filesystem z)
Copy link
Collaborator

Choose a reason for hiding this comment

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

According to https://cmake.org/cmake/help/latest/module/FindZLIB.html, it seems that the zlib link target should be specified as ZLIB::ZLIB

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.

Failed to build test_coordgen on static mode

2 participants