-
Notifications
You must be signed in to change notification settings - Fork 31
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
Mac build #73
Mac build #73
Changes from all commits
3bed333
bb7234a
876a750
1611bd2
bc2f4a8
29084da
bd9e9f3
5deba63
f33d5c1
0839010
7dd4123
0034ec4
29e03df
420d268
781f442
d801f2d
ae27c28
1fe2038
81b288f
f8d0458
3832f7b
308674f
653e129
56a8538
414a188
7a3bd99
3f979b0
10267c2
8e1565b
8b33d2e
bc47f17
7f60169
cd56518
68789d8
bbd7a9d
8654603
ac3d80c
e26f090
a5564e6
a7eb026
c58af53
8a613db
81c4884
4a19216
61e0de7
389eacf
ea3567e
3b4700c
467746b
9a96464
38462c9
d055c0b
c71606f
8edf7a7
611d068
d2d05db
b670814
9cb1fdf
b12e199
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 |
---|---|---|
|
@@ -2,6 +2,10 @@ project(libMCNP2CAD) | |
|
||
cmake_minimum_required(VERSION 3.0) | ||
|
||
set(MCNP2CAD_VERSION_MAJOR 1) | ||
set(MCNP2CAD_VERSION_MINOR 0) | ||
set(MCNP2CAD_VERSION_PATCH 5) | ||
|
||
# Build options | ||
option(STANDALONE_MCNP2CAD "Build mcnp2cad as a standalone program" ON) | ||
option(BUILD_MCNP2CAD_TESTS "Build mcnp2cad tests" ON) | ||
|
@@ -18,15 +22,6 @@ set(CMAKE_CXX_STANDARD 11) | |
# iGeom assumed to have cone functionality | ||
add_definitions(-DHAVE_IGEOM_CONE=ON) | ||
|
||
# Adjust compiler setting for Linux using gcc version 5.0 and higher | ||
if (CMAKE_SYSTEM_NAME MATCHES Linux AND CMAKE_COMPILER_IS_GNUCXX) | ||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "5.0") | ||
if (NOT CMAKE_CXX_FLAGS MATCHES _GLIBCXX_USE_CXX11_ABI) | ||
set(CMAKE_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=0 ${CMAKE_CXX_FLAGS}") | ||
endif () | ||
endif () | ||
endif () | ||
|
||
# Find Eigen3 | ||
find_package(Eigen3 3.3 REQUIRED) | ||
message(STATUS "EIGEN3_INCLUDE_DIR: ${EIGEN3_INCLUDE_DIR}") | ||
|
@@ -77,6 +72,7 @@ if (STANDALONE_MCNP2CAD) | |
set(INSTALL_RPATH_DIRS "${CMAKE_INSTALL_PREFIX}/lib") | ||
endif () | ||
endif () | ||
configure_file(version.hpp.in version.hpp) | ||
|
||
SET(MCNP2CAD_SRC_FILES geometry.cpp | ||
GQ_Characterize.cpp | ||
|
@@ -90,8 +86,10 @@ set(MCNP2CAD_PUB_HEADERS dataref.hpp | |
mcnp2cad.hpp | ||
MCNPInput.hpp | ||
options.hpp | ||
version.hpp | ||
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. don't we still want this to be installed even though it is autogenerated? 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. we do at line 91 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 think ?! 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 think line 91 makes it available for the build, but doesn't install it for use by downstream applications, although I'm not 100% sure. 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. yes you are probably right... 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'll commit an update soon. |
||
volumes.hpp) | ||
volumes.hpp | ||
${CMAKE_CURRENT_BINARY_DIR}/version.hpp) | ||
|
||
include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
|
||
# mcnp2cad library | ||
add_library(mcnp2cad SHARED ${MCNP2CAD_SRC_FILES}) | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef MCNP2CAD_VERSION_H | ||
#define MCNP2CAD_VERSION_H | ||
|
||
#define MCNP2CAD_VERSION_MAJOR @MCNP2CAD_VERSION_MAJOR@ | ||
#define MCNP2CAD_VERSION_MINOR @MCNP2CAD_VERSION_MINOR@ | ||
#define MCNP2CAD_VERSION_REV @MCNP2CAD_VERSION_PATCH@ | ||
|
||
#define STANDALONE_MCNP2CAD @STANDALONE_MCNP2CAD@ | ||
|
||
#endif /* MCNP2CAD_VERSION_H */ |
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.
Perhaps I am out of the loop, but how come these lines were removed? I remember them being necessary when I was building on Linux.
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.
it is still needed for Trelis 17.1.
And we now add it manually on the reps we build (MOAB, and DAGMC).
but as this need to be removed for Cubit 2020.2, we decided that we remove them and one specify them manually in the make process.
(@pshriwise I think we need to update the doc)