mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-28 06:15:21 +00:00
Apparently, VC++ compiler does not accept -Wextra option
This commit is contained in:
parent
25ac047ff7
commit
58c625e409
@ -44,12 +44,12 @@ if (ELFIO_BUILD_EXAMPLES OR ELFIO_BUILD_TESTS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ELFIO_BUILD_EXAMPLES)
|
if (ELFIO_BUILD_EXAMPLES)
|
||||||
set (CMAKE_CXX_FLAGS "-Wall -Wextra")
|
# set (CMAKE_CXX_FLAGS "-Wall")
|
||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ELFIO_BUILD_TESTS AND IS_TOP_PROJECT)
|
if (ELFIO_BUILD_TESTS AND IS_TOP_PROJECT)
|
||||||
set (CMAKE_CXX_FLAGS "-Wall -Wextra")
|
# set (CMAKE_CXX_FLAGS "-Wall")
|
||||||
enable_testing()
|
enable_testing()
|
||||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} USES_TERMINAL)
|
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} USES_TERMINAL)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
Loading…
Reference in New Issue
Block a user