Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Nektar
Nektar
Commits
f2241764
Commit
f2241764
authored
Jul 04, 2014
by
Dave Moxey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix scotch for OS X
parent
c833e35f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cmake/ThirdPartyScotch.cmake
cmake/ThirdPartyScotch.cmake
+4
-0
No files found.
cmake/ThirdPartyScotch.cmake
View file @
f2241764
...
...
@@ -19,11 +19,14 @@ IF( NEKTAR_USE_SCOTCH )
IF
(
APPLE
)
SET
(
SCOTCH_MAKE Makefile.inc.i686_mac_darwin8
)
SET
(
SCOTCH_LDFLAGS
""
)
SET
(
SCOTCH_CFLAGS
"-O3 -Drestrict=__restrict -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DCOMMON_PTHREAD_BARRIER"
)
ELSE
()
IF
(
CMAKE_SYSTEM_PROCESSOR STREQUAL
"x86_64"
)
SET
(
SCOTCH_MAKE Makefile.inc.x86-64_pc_linux2
)
SET
(
SCOTCH_CFLAGS
"-O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -Drestrict=__restrict -DIDXSIZE64"
)
ELSE
()
SET
(
SCOTCH_MAKE Makefile.inc.i686_pc_linux2
)
SET
(
SCOTCH_CFLAGS
"-O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -Drestrict=__restrict"
)
ENDIF
()
SET
(
SCOTCH_LDFLAGS
"-lz -lm -lrt -lpthread"
)
ENDIF
()
...
...
@@ -40,6 +43,7 @@ IF( NEKTAR_USE_SCOTCH )
${
SCOTCH_SRC
}
/Make.inc/
${
SCOTCH_MAKE
}
${
SCOTCH_SRC
}
/Makefile.inc
BUILD_COMMAND $
(
MAKE
)
-C
${
TPSRC
}
/src/scotch-6.0.0/src
"CFLAGS=
${
SCOTCH_CFLAGS
}
"
"LDFLAGS=
${
SCOTCH_LDFLAGS
}
"
"CLIBFLAGS=-fPIC"
scotch
INSTALL_COMMAND $
(
MAKE
)
-C
${
TPSRC
}
/src/scotch-6.0.0/src
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment