-
Notifications
You must be signed in to change notification settings - Fork 85
Improved installation paths #901
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
base: master
Are you sure you want to change the base?
Changes from all commits
163f767
0a0c42d
29d4c10
54a41db
5075f2e
5dba632
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 |
|---|---|---|
|
|
@@ -17,11 +17,11 @@ endif() | |
| set(STORM_RESOURCE_INCLUDE_INSTALL_DIR "${_IMPORT_PREFIX}/@STORM_RESOURCE_INCLUDE_INSTALL_DIR@") | ||
| set(STORM_RESOURCE_LIBRARY_INSTALL_DIR "${_IMPORT_PREFIX}/@STORM_RESOURCE_LIBRARY_INSTALL_DIR@") | ||
|
|
||
| include("${CMAKE_CURRENT_LIST_DIR}/carlConfig.cmake") | ||
| include("${STORM_RESOURCE_LIBRARY_INSTALL_DIR}/cmake/carl/carlConfig.cmake") | ||
|
Contributor
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. I am not sure about replacing
Contributor
Author
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. With the new changes, the carlConfig will be in a directory next to the Storm repository and not a sub-directory anymore. So we would need to go up one directory. But I guess we could still use
Contributor
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. Ok, so I dislike a bit that carl will be installed on the same level as storm, but if we do it that way, I understand the use of absolute paths.
Contributor
Author
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. Ok, then I will keeps it as is for now. |
||
| if(NOT TARGET lib_carl) | ||
| message(FATAL_ERROR "Including ${CMAKE_CURRENT_LIST_DIR}/carlConfig.cmake did not define target lib_carl.") | ||
| message(FATAL_ERROR "Including ${STORM_RESOURCE_LIBRARY_INSTALL_DIR}/cmake/carl/carlConfig.cmake did not define target lib_carl.") | ||
| endif() | ||
| set(storm_carl_DIR "${CMAKE_CURRENT_LIST_DIR}") | ||
| set(storm_carl_DIR "${STORM_RESOURCE_LIBRARY_INSTALL_DIR}/cmake/carl") | ||
|
|
||
| set(CMAKE_MODULE_PATH_save "${CMAKE_MODULE_PATH}") | ||
| list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_LIST_DIR}/find_modules/") | ||
|
|
@@ -112,7 +112,7 @@ if(@STORM_HAVE_SPOT@) # STORM_HAVE_SPOT | |
| endif() | ||
|
|
||
| if(@STORM_HAVE_SYLVAN@) # STORM_HAVE_SYLVAN | ||
| include("${STORM_RESOURCE_LIBRARY_INSTALL_DIR}/sylvan/cmake/sylvan/sylvan-config.cmake") | ||
| include("${STORM_RESOURCE_LIBRARY_INSTALL_DIR}/cmake/sylvan/sylvan-config.cmake") | ||
| endif() | ||
|
|
||
| if(@STORM_HAVE_XERCES@) # STORM_HAVE_XERCES | ||
|
|
||
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 change the default? For custom-built paths (vs packages) the old default seems to make it easier to cleanup?
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.
The CMake variables
CMAKE_INSTALL_INCUDEDIRetc. can also be set from cmake or ccmake. So this makes it a bit more configurable in my view instead of using fixed paths as default. I thought using the standard locations provided by GnuInstallDirs would make it better align with the standard behavior of others.