Skip to content

Commit

Permalink
clean up test cmake, remove werror
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Feb 7, 2024
1 parent 5043710 commit 904da5e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

### Compile options

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using Clang (linux or apple) or GCC
message("Using clang/gcc compiler flags")
SET(BASE_CXX_FLAGS "-std=c++14 -Wall -Wextra -Werror -g3")
SET(BASE_CXX_FLAGS "-Wall -Wextra -g3")
SET(DISABLED_WARNINGS " -Wno-unused-parameter -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-deprecated-declarations")
SET(TRACE_INCLUDES " -H -Wno-error=unused-command-line-argument")

Expand Down Expand Up @@ -77,10 +82,6 @@ add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/googletest-src

set_property(TARGET gtest PROPERTY CXX_STANDARD 14)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# Test executable
add_executable(ply-test
main_test.cpp
Expand Down

0 comments on commit 904da5e

Please sign in to comment.