Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
0a396e07
Commit
0a396e07
authored
Nov 19, 2013
by
Praetorius, Simon
Browse files
CMakeLists adapted to MacOS systems and required boost version updated
parent
4126c6f6
Changes
1
Show whitespace changes
Inline
Side-by-side
AMDiS/CMakeLists.txt
View file @
0a396e07
...
...
@@ -55,7 +55,7 @@ option(ENABLE_OUTPUT "AMDiS output printing, disable only for debugging!" true)
mark_as_advanced
(
ENABLE_OUTPUT
)
find_package
(
Boost 1.4
2
REQUIRED
)
find_package
(
Boost 1.4
4
REQUIRED
)
if
(
Boost_FOUND
)
list
(
APPEND AMDIS_INCLUDE_DIRS
${
Boost_INCLUDE_DIR
}
)
message
(
"boost lib-dirs:
${
Boost_LIBRARY_DIRS
}
"
)
...
...
@@ -597,6 +597,18 @@ list(APPEND AMDIS_LIBS amdis ${Boost_LIBRARIES})
if
(
WIN32
)
list
(
APPEND COMPILEFLAGS
"-D_SCL_SECURE_NO_WARNINGS"
"-D_CRT_SECURE_NO_WARNINGS"
)
endif
(
WIN32
)
if
(
CMAKE_SYSTEM_NAME MATCHES Darwin
)
if
(
CMAKE_COMPILER_IS_GNUCXX OR
${
CMAKE_CXX_COMPILER_ID
}
STREQUAL Clang
)
SET
(
CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS
"
${
CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS
}
-flat_namespace -single_module -undefined dynamic_lookup"
)
SET
(
CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS
"
${
CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS
}
-flat_namespace -single_module -undefined dynamic_lookup"
)
set
(
CMAKE_C_LINK_FLAGS
"
${
CMAKE_C_LINK_FLAGS
}
-bind_at_load -m64"
)
set
(
CMAKE_CXX_LINK_FLAGS
"
${
CMAKE_CXX_LINK_FLAGS
}
-bind_at_load -m64"
)
endif
()
endif
()
message
(
"compileflags:
${
COMPILEFLAGS
}
"
)
#SET_TARGET_PROPERTIES(amdis PROPERTIES COMPILE_FLAGS "${COMPILEFLAGS}")
add_definitions
(
${
COMPILEFLAGS
}
)
...
...
Write
Preview
Supports
Markdown
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