Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Nektar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dappur
Nektar
Commits
0d0ab154
Commit
0d0ab154
authored
10 years ago
by
Chris Cantwell
Browse files
Options
Downloads
Patches
Plain Diff
Fixed ThirdPartyBoost to populate Nektar++Config.cmake.in
parent
5879cb68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+7
-6
7 additions, 6 deletions
CMakeLists.txt
cmake/Nektar++Config.cmake.in
+4
-3
4 additions, 3 deletions
cmake/Nektar++Config.cmake.in
cmake/ThirdPartyBoost.cmake
+5
-0
5 additions, 0 deletions
cmake/ThirdPartyBoost.cmake
with
16 additions
and
9 deletions
CMakeLists.txt
+
7
−
6
View file @
0d0ab154
...
...
@@ -41,17 +41,17 @@ INCLUDE(GetGitRevisionDescription)
get_git_head_revision
(
GIT_REFSPEC GIT_SHA1
)
# Set library, binary, include, share and doc paths.
SET
(
LIB_DIR
"lib/nektar++"
)
SET
(
LIB_DIR
"lib/nektar++
-
${
NEKTAR_VERSION
}
"
)
IF
(
CMAKE_SYSTEM_PROCESSOR STREQUAL
"x86_64"
AND NOT APPLE
)
SET
(
LIB_DIR
"lib64/nektar++"
)
SET
(
LIB_DIR
"lib64/nektar++
-
${
NEKTAR_VERSION
}
"
)
ENDIF
()
SET
(
CMAKE_INCLUDE_SYSTEM_FLAG_CXX
"-isystem "
)
SET
(
NEKTAR_BIN_DIR bin
)
SET
(
NEKTAR_LIB_DIR
${
LIB_DIR
}
)
SET
(
NEKTAR_INCLUDE_DIR include/nektar++
)
SET
(
NEKTAR_SHARE_DIR share/nektar++
)
SET
(
NEKTAR_DOC_DIR share/doc/nektar++
)
SET
(
NEKTAR_INCLUDE_DIR include/nektar++
-
${
NEKTAR_VERSION
}
)
SET
(
NEKTAR_SHARE_DIR share/nektar++
-
${
NEKTAR_VERSION
}
)
SET
(
NEKTAR_DOC_DIR share/doc/nektar++
-
${
NEKTAR_VERSION
}
)
# Build shared libraries.
SET
(
NEKTAR_LIBRARY_TYPE
"SHARED"
)
...
...
@@ -151,6 +151,7 @@ SET(TPSRC ${CMAKE_SOURCE_DIR}/ThirdParty)
SET
(
TPBUILD
${
CMAKE_BINARY_DIR
}
/ThirdParty
)
SET
(
TPDIST
${
CMAKE_BINARY_DIR
}
/ThirdParty/dist
)
SET
(
TPINC
${
CMAKE_INSTALL_PREFIX
}
/include/ThirdParty
)
SET
(
TPLIB
${
CMAKE_INSTALL_PREFIX
}
/
${
NEKTAR_LIB_DIR
}
)
# Create ThirdParty source directory if it doesn't exist already.
IF
(
NOT EXISTS
${
TPSRC
}
)
...
...
@@ -263,7 +264,7 @@ IF (NEKTAR_BUILD_LIBRARY)
MultiRegions
)
INCLUDE_DIRECTORIES
(
library
)
ADD_SUBDIRECTORY
(
library
)
INSTALL
(
EXPORT Nektar++Libraries DESTINATION
${
LIB_DIR
}
)
INSTALL
(
EXPORT Nektar++Libraries DESTINATION
${
LIB_DIR
}
/cmake
)
ENDIF
(
NEKTAR_BUILD_LIBRARY
)
IF
(
NEKTAR_BUILD_SOLVERS
)
...
...
This diff is collapsed.
Click to expand it.
cmake/Nektar++Config.cmake.in
+
4
−
3
View file @
0d0ab154
...
...
@@ -40,10 +40,11 @@ SET(NEKTAR++_TP_LIBRARIES "")
SET(NEKTAR++_TP_LIBRARY_DIRS "")
# Set up Boost and other ThirdParty include directories.
SET(Boost_INCLUDE_DIRS "@Boost_INCLUDE_DIRS@")
SET(Boost_LIBRARIES "@Boost_LIBRARIES@")
SET(Boost_LIBRARY_DIRS "@Boost_LIBRARY_DIRS@")
SET(Boost_INCLUDE_DIRS "@Boost_CONFIG_INCLUDE_DIR@")
SET(NEKTAR++_TP_INCLUDE_DIRS ${NEKTAR++_TP_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
SET(Boost_LIBRARIES @Boost_LIBRARIES@)
SET(Boost_LIBRARY_DIRS "@Boost_CONFIG_LIBRARY_DIR@")
SET(NEKTAR++_TP_LIBRARIES ${NEKTAR++_TP_LIBRARIES} ${Boost_LIBRARIES})
SET(NEKTAR_USE_MPI "@NEKTAR_USE_MPI@")
...
...
This diff is collapsed.
Click to expand it.
cmake/ThirdPartyBoost.cmake
+
5
−
0
View file @
0d0ab154
...
...
@@ -136,7 +136,10 @@ IF (THIRDPARTY_BUILD_BOOST)
SET
(
Boost_THREAD_LIBRARY_DEBUG boost_thread
)
SET
(
Boost_THREAD_LIBRARY_RELEASE boost_thread
)
SET
(
Boost_INCLUDE_DIRS
${
TPSRC
}
/dist/include
)
SET
(
Boost_CONFIG_INCLUDE_DIR
${
TPINC
}
)
SET
(
Boost_LIBRARY_DIRS
${
TPSRC
}
/dist/lib
)
SET
(
Boost_CONFIG_LIBRARY_DIR
${
TPLIB
}
)
SET
(
Boost_LIBRARIES boost_date_time boost_filesystem boost_iostreams boost_program_options boost_regex boost_system boost_thread
)
LINK_DIRECTORIES
(
${
Boost_LIBRARY_DIRS
}
)
ELSE
(
THIRDPARTY_BUILD_BOOST
)
ADD_CUSTOM_TARGET
(
boost ALL
)
...
...
@@ -185,6 +188,8 @@ ELSE (THIRDPARTY_BUILD_BOOST)
IF
(
BOOST_THREAD_LIBRARY
)
MARK_AS_ADVANCED
(
BOOST_THREAD_LIBRARY
)
ENDIF
(
BOOST_THREAD_LIBRARY
)
SET
(
Boost_CONFIG_INCLUDE_DIR
${
Boost_INCLUDE_DIRS
}
)
SET
(
Boost_CONFIG_LIBRARY_DIR
${
Boost_LIBRARY_DIRS
}
)
ENDIF
(
THIRDPARTY_BUILD_BOOST
)
INCLUDE_DIRECTORIES
(
SYSTEM
${
Boost_INCLUDE_DIRS
}
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment