Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Yuhao Liu
ogs
Commits
31b68753
Commit
31b68753
authored
9 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Plain Diff
Merge pull request #646 from bilke/cmake-library-fixes
Handle OGS_NO_BOOST_DOWNLOAD properly
parents
5b540912
d1327b44
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Applications/Utils/FileConverter/CMakeLists.txt
+11
-13
11 additions, 13 deletions
Applications/Utils/FileConverter/CMakeLists.txt
scripts/cmake/ExternalProjectBoost.cmake
+8
-1
8 additions, 1 deletion
scripts/cmake/ExternalProjectBoost.cmake
with
19 additions
and
14 deletions
Applications/Utils/FileConverter/CMakeLists.txt
+
11
−
13
View file @
31b68753
...
...
@@ -53,19 +53,17 @@ if (QT4_FOUND)
ADD_CATALYST_DEPENDENCY
(
FEFLOW2OGS
)
endif
()
# QT4_FOUND
if
(
Boost_FOUND
)
add_executable
(
generateMatPropsFromMatID generateMatPropsFromMatID.cpp
)
target_link_libraries
(
generateMatPropsFromMatID
FileIO
MeshLib
logog
InSituLib
${
CATALYST_LIBRARIES
}
)
ADD_CATALYST_DEPENDENCY
(
generateMatPropsFromMatID
)
set_target_properties
(
generateMatPropsFromMatID
PROPERTIES FOLDER Utilities
)
endif
()
# Boost_FOUND
add_executable
(
generateMatPropsFromMatID generateMatPropsFromMatID.cpp
)
target_link_libraries
(
generateMatPropsFromMatID
FileIO
MeshLib
logog
InSituLib
${
CATALYST_LIBRARIES
}
)
ADD_CATALYST_DEPENDENCY
(
generateMatPropsFromMatID
)
set_target_properties
(
generateMatPropsFromMatID
PROPERTIES FOLDER Utilities
)
add_executable
(
GMSH2OGS GMSH2OGS.cpp
)
set_target_properties
(
GMSH2OGS PROPERTIES FOLDER Utilities
)
...
...
This diff is collapsed.
Click to expand it.
scripts/cmake/ExternalProjectBoost.cmake
+
8
−
1
View file @
31b68753
...
...
@@ -62,7 +62,14 @@ if(NOT Boost_INCLUDE_DIRS)
if
(
WIN32 AND COMPILER_IS_GCC
)
set
(
BOOST_INCLUDEDIR
"$ENV{CMAKE_LIBRARY_SEARCH_PATH}/include/boost*"
)
endif
()
find_package
(
Boost 1.46.0 COMPONENTS
${
BOOST_LIBS_TO_BUILD
}
)
if
(
OGS_NO_BOOST_DOWNLOAD
)
find_package
(
Boost 1.46.0 COMPONENTS
${
BOOST_LIBS_TO_BUILD
}
REQUIRED
)
if
(
NOT Boost_FOUND
)
message
(
FATAL_ERROR
"Aborting CMake because Boost was not found!."
)
endif
()
else
()
find_package
(
Boost 1.46.0 COMPONENTS
${
BOOST_LIBS_TO_BUILD
}
)
endif
()
if
(
Boost_FOUND
)
set
(
Boost_FOUND TRUE CACHE BOOL
"Was Boost found?"
FORCE
)
set
(
Boost_INCLUDE_DIRS
"
${
Boost_INCLUDE_DIRS
}
"
CACHE STRING
"Boost include dirs"
FORCE
)
...
...
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