-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Modifications suggested by conan team #662
Changes from 4 commits
bb63aa9
2c617b4
2f36000
5d9bdba
bfdee5f
8190394
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FIND_PATH( | ||
GLM_INCLUDE_DIR | ||
NAMES | ||
glm | ||
PATHS | ||
include) | ||
|
||
INCLUDE(FindPackageHandleStandardArgs) | ||
|
||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLM REQUIRED_VARS GLM_INCLUDE_DIR) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,10 @@ cmake_minimum_required(VERSION 3.0.0) | |
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup() | ||
|
||
set(CMAKE_C_FLAGS "${CONAN_C_FLAGS}") | ||
set(CMAKE_CXX_FLAGS "${CONAN_CXX_FLAGS}") | ||
set(CMAKE_SHARED_LINKER_FLAGS "${CONAN_SHARED_LINKER_FLAGS}") | ||
if(MSVC) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") | ||
endif(MSVC) | ||
|
||
add_executable(testGlm main.cpp) | ||
TARGET_COMPILE_DEFINITIONS(testGlm PUBLIC "${CONAN_DEFINES}") | ||
TARGET_LINK_LIBRARIES(testGlm PUBLIC "${CONAN_LIBS}") | ||
SET_TARGET_PROPERTIES(testGlm PROPERTIES LINK_FLAGS "${CONAN_EXE_LINKER_FLAGS}") | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point. Header only doesnt need further config There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the feedback. I've also updated the readme: https://github.com/dimi309/glm/blob/master/util/conan-package/README.md I don't see how the conan packaging configuration could possibly affect the build. It is located within its own directory and, since it requires no compilation, it doesn't even have a travis or appveyor setup. |
||
|
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.
Why do you need to explicitly include FindGLM? Does it match some other ignore pattern?
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.
There is an exclusion of all .cmake files in the .gitignore of the top level directory:
https://github.com/g-truc/glm/blob/master/.gitignore