Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
2685d4df
Commit
2685d4df
authored
Apr 23, 2018
by
PRUVOST Florent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
parent
5e36b9b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
CMakeLists.txt
CMakeLists.txt
+8
-12
No files found.
CMakeLists.txt
View file @
2685d4df
...
...
@@ -270,16 +270,14 @@ endif ()
# Add math library to the list of extra
# it normally exists on all common systems provided with a C compiler
set
(
M_LIBRARIES
""
)
if
(
UNIX OR WIN32
)
find_library
(
M_
m_
LIBRARY
M_LIBRARY
NAMES m
)
mark_as_advanced
(
M_m_LIBRARY
)
if
(
M_m_LIBRARY
)
list
(
APPEND M_LIBRARIES
"
${
M_m_LIBRARY
}
"
)
list
(
APPEND EXTRA_LIBRARIES
"
${
M_m_LIBRARY
}
"
)
mark_as_advanced
(
M_LIBRARY
)
if
(
M_LIBRARY
)
list
(
APPEND EXTRA_LIBRARIES
"
${
M_LIBRARY
}
"
)
else
()
message
(
FATAL_ERROR
"Could NOT find libm on your system."
" Are you sure to a have a C compiler installed?"
)
...
...
@@ -288,16 +286,14 @@ endif()
# Try to find librt (libposix4 - POSIX.1b Realtime Extensions library)
# on Unix systems except Apple ones because it does not exist on it
set
(
RT_LIBRARIES
""
)
if
(
UNIX AND NOT APPLE
)
find_library
(
RT_
rt_
LIBRARY
RT_LIBRARY
NAMES rt
)
mark_as_advanced
(
RT_rt_LIBRARY
)
if
(
RT_rt_LIBRARY
)
list
(
APPEND RT_LIBRARIES
"
${
RT_rt_LIBRARY
}
"
)
list
(
APPEND EXTRA_LIBRARIES
"
${
RT_rt_LIBRARY
}
"
)
mark_as_advanced
(
RT_LIBRARY
)
if
(
RT_LIBRARY
)
list
(
APPEND EXTRA_LIBRARIES
"
${
RT_LIBRARY
}
"
)
else
()
message
(
FATAL_ERROR
"Could NOT find librt on your system"
)
endif
()
...
...
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