Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macos compile errors and warnings #313

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set features and options for libocca target
Require C++11 or greater.
Use target_compile_options to suppress the following warnings:
    * default template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    * unused parameter 'XXX' [-Wunused-parameter]
  • Loading branch information
James Eggleton committed Apr 11, 2020
commit 837ae1902c8c447f6a93c1033054263a0ef4a7dc
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ endif()

target_link_libraries(libocca ${LIBOCCA_LIBRARIES})

target_compile_features(libocca PUBLIC cxx_std_11)
target_compile_options(libocca PRIVATE -Wall -Wextra -Wno-c++11-extensions -Wno-unused-parameter)

install(TARGETS libocca DESTINATION lib)