Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
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
schwede
openstructure
Commits
18e65888
Commit
18e65888
authored
5 years ago
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
SCHWED-4354: Fix compile version check
parent
9bf0ff3a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+0
-10
0 additions, 10 deletions
CMakeLists.txt
cmake_support/OST.cmake
+8
-4
8 additions, 4 deletions
cmake_support/OST.cmake
with
8 additions
and
14 deletions
CMakeLists.txt
+
0
−
10
View file @
18e65888
...
...
@@ -12,16 +12,6 @@ set (OST_VERSION_STRING ${OST_VERSION_MAJOR}.${OST_VERSION_MINOR}.${OST_VERSION_
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
${
PROJECT_SOURCE_DIR
}
/cmake_support
)
include
(
OST
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
exec_program
(
gcc ARGS --version OUTPUT_VARIABLE CMAKE_C_COMPILER_VERSION
)
if
(
CMAKE_C_COMPILER_VERSION MATCHES
".*4
\\
.[5-9].*"
)
set
(
OST_GCC_45 true
)
else
()
set
(
OST_GCC_45 false
)
endif
()
endif
()
option
(
USE_SHADER
"whether to compile with shader support"
OFF
)
option
(
USE_RPATH
"embed rpath upon make install"
...
...
This diff is collapsed.
Click to expand it.
cmake_support/OST.cmake
+
8
−
4
View file @
18e65888
...
...
@@ -321,14 +321,14 @@ macro(executable)
if
(
ENABLE_STATIC AND _ARG_STATIC
)
target_link_libraries
(
${
_ARG_NAME
}
${
STATIC_LIBRARIES
}
)
if
(
UNIX AND NOT APPLE
)
if
(
OST_GCC_
45
)
if
(
OST_GCC_
LESS_45
)
set_target_properties
(
${
_ARG_NAME
}
PROPERTIES LINK_SEARCH_END_STATIC TRUE
LINK_FLAGS
"-static-libgcc
-static-libstdc++
-static -pthread"
)
LINK_FLAGS
"-static-libgcc -static -pthread"
)
else
()
set_target_properties
(
${
_ARG_NAME
}
PROPERTIES LINK_SEARCH_END_STATIC TRUE
LINK_FLAGS
"-static-libgcc -static -pthread"
)
LINK_FLAGS
"-static-libgcc
-static-libstdc++
-static -pthread"
)
endif
()
endif
()
endif
()
...
...
@@ -899,9 +899,13 @@ macro(setup_compiler_flags)
#message(STATUS "GCC VERSION " ${_GCC_VERSION})
if
((
ENABLE_INFO OR ENABLE_GUI
)
AND _GCC_VERSION LESS
"60"
)
# for older compilers we need to enable C++11 for Qt5
#message(STATUS "ADDING C++11 FLAG")
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11"
)
endif
()
if
(
_GCC_VERSION LESS
"45"
)
set
(
OST_GCC_LESS_45 true
)
else
()
set
(
OST_GCC_LESS_45 false
)
endif
()
endif
()
endmacro
()
set
(
_BOOST_MIN_VERSION 1.31
)
...
...
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