-
Notifications
You must be signed in to change notification settings - Fork 14
Handle Trelis 17 #64
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
Handle Trelis 17 #64
Changes from 7 commits
b286eca
1d9ed1a
96adbf0
3ee6bde
646000d
6dbdc45
c05c7c0
5f99de7
7a355d4
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 |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| project(SvalinnCommandPlugin) | ||
|
|
||
| cmake_minimum_required(VERSION 3.0) | ||
| cmake_minimum_required(VERSION 3.7) | ||
|
|
||
| # User must specify the version of Cubit being used | ||
| if (NOT CUBIT_VERSION) | ||
| message(FATAL_ERROR "CUBIT_VERSION not specified") | ||
| endif () | ||
|
|
||
| # Build options | ||
| option(UPDATE_SUBMODULES "Automatically update git submodules" ON) | ||
|
|
@@ -33,6 +38,9 @@ if (CMAKE_SYSTEM_NAME MATCHES Linux AND CMAKE_COMPILER_IS_GNUCXX) | |
| endif () | ||
|
|
||
| # Find Cubit/Trelis | ||
| if (NOT CUBIT_ROOT) | ||
| set(CUBIT_ROOT "/opt/Trelis-${CUBIT_VERSION}") | ||
| endif () | ||
| list(APPEND CMAKE_PREFIX_PATH ${CUBIT_ROOT}/bin) | ||
| find_package(Cubit REQUIRED CONFIG) | ||
| include_directories(${CUBIT_INCLUDE_DIRS}) | ||
|
|
@@ -77,6 +85,9 @@ if (BUILD_IGEOM) | |
| include_directories(iGeom) | ||
| add_library(iGeom SHARED ${IGEOM_SRC_FILES}) | ||
| target_link_libraries(iGeom ${CUBIT_LIBS}) | ||
| if (CUBIT_VERSION VERSION_GREATER_EQUAL 17.0) | ||
|
Member
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. Can we add a comment here noting that this really has to do with the SDK version as opposed to the version of Trelis/Cubit? As per @gonuke's comment #61 (comment) here, it still isn't clear what versions of Cubit (as opposed to Trelis versions) this will apply to.
Member
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. This |
||
| target_compile_definitions(iGeom PUBLIC -DCUBIT_17_PLUS) | ||
| endif () | ||
| install(TARGETS iGeom LIBRARY DESTINATION lib) | ||
| list(APPEND PLUGIN_LINK_LIBS iGeom) | ||
| endif () | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.