Browse Source

Specify flags without -Wextra for non-gcc compilers.

pull/11/head
ngkaho1234 9 years ago
parent
commit
a35c56fdfe
  1. 7
      CMakeLists.txt

7
CMakeLists.txt

@ -48,8 +48,11 @@ add_subdirectory(blockdev)
#Library build
add_subdirectory(lwext4)
#Detect all possible warnings for lwext4 target
set_target_properties(lwext4 PROPERTIES COMPILE_FLAGS "-Wall -Wextra -pedantic")
if (NOT CMAKE_COMPILER_IS_GNUCC)
set_target_properties(lwext4 PROPERTIES COMPILE_FLAGS "")
else()
set_target_properties(lwext4 PROPERTIES COMPILE_FLAGS "-Wall -Wextra -pedantic")
endif()
#DISTRIBUTION
set(CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}")

Loading…
Cancel
Save