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
Olena
pylene
Commits
a81c893e
Commit
a81c893e
authored
Feb 06, 2015
by
Edwin Carlinet
Browse files
Fix the build system.
* CMakeLists.txt: Add boost include directory in Compile Flags.
parent
48407574
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
a81c893e
...
...
@@ -20,13 +20,14 @@ endif()
# add source directory to find mln path
include_directories
(
"
${
PROJECT_SOURCE_DIR
}
"
)
include_directories
(
${
TBB_INCLUDE_DIRS
}
)
include_directories
(
${
Boost_INCLUDE_DIR
}
)
link_directories
(
${
TBB_LIBRARY_DIRS
}
)
link_libraries
(
${
TBB_LIBRARIES
}
rt
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-W -Wextra -Wall -std=c++0x"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-W -Wextra -Wall -g -ggdb"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
-W -Wextra -Wall -O3 -DNDEBUG
-march=native
"
)
set
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
-W -Wextra -Wall -O
3 -DNDEBUG
-g -ggdb"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
-W -Wextra -Wall -O3 -DNDEBUG"
)
set
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
-W -Wextra -Wall -O
2
-g -ggdb"
)
# default buidling type
...
...
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