-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add package config file generation for find_package #106
base: cpp11
Are you sure you want to change the base?
Conversation
a2c41ba
to
9f5ae9e
Compare
Please, review. Travis build seems to have failed for some irrelevant reason |
Travis build fails on Travis CI no longer being able to find the Clang-3.7 package for their majorly outdated Linux deployment - probably because it's gone out of LTS support a few years ago. I'll check if I can move it to more up to date Clangs and distros. No worries, none of your code was even looked at in the failed build, and all builds that were run are successful. |
HippoMocks/CMakeLists.txt
Outdated
@@ -1,12 +1,24 @@ | |||
|
|||
add_library(HippoMocks INTERFACE) | |||
target_include_directories(HippoMocks INTERFACE .) | |||
target_include_directories(HippoMocks INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>) | |||
if (NOT WIN32) | |||
target_compile_options(HippoMocks | |||
INTERFACE | |||
-Wall -Wextra -pedantic -Wno-long-long -std=c++11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could lead to build failures if project is built once and used on different platforms (which is a possiblility given that it's header-only). Consider moving flags to HippoMocksTest project instead (where they are useful) to avoid forcing them on other people, and setting CXX_STANDARD
+ CXX_STANDARD_REQUIRED
properties here instead of -std=c++11
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be a cxx_std_11
compile feature since aforementioned properties aren't supported on interface targets :(
31a9bd3
to
a2615f5
Compare
- no package config version file - moved compile options to test project - added opportunity to skip tests
(without package config version file)