-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix python dest #160
Fix python dest #160
Changes from 5 commits
17676c6
1ec22f6
ed63cb9
a4f7bd8
403c7a8
e463b9f
396bba7
ea68ad0
0ed3bb6
ef26a0c
94e5543
a0f4a5b
77b01af
3061ddc
a917055
0261609
cc357d5
688adfa
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 |
---|---|---|
|
@@ -75,7 +75,10 @@ find_package(PythonInterp) | |
find_package(PythonLibs) | ||
set (BUILD_PYTHON ${PYTHONLIBS_FOUND}) | ||
if (BUILD_PYTHON) | ||
set(PYTHON_DEST "${CMAKE_INSTALL_PREFIX}/python") | ||
if (PYTHON_DEST) | ||
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. clearer to say if (NOT PYTHON_DEST)
set(...)
endif() 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. does that work? from the docs I understood it wouldn't with a variable |
||
else() | ||
set(PYTHON_DEST "${CMAKE_INSTALL_PREFIX}/python") | ||
endif() | ||
message(STATUS "Python libraries found") | ||
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. let's add the install location to the message |
||
endif() | ||
|
||
|
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.
add a comment saying why we do this
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.
thanks. I'd add something like "If PYTHON_DEST_DIR is not set, we will install in ${CMAKE_INSTALL_PREFIX}/python". I know, obvious maybe...