소스 검색

Enable C99 and full warnings on LINUXTEST.

Ioannis Koutras 14 년 전
부모
커밋
4bdc60400e
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      CMakeLists.txt

+ 4 - 4
CMakeLists.txt

@@ -10,10 +10,10 @@ include(MacroEnsureOutOfSourceBuild)
 macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source build. Please create a separate build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there.")
 
 
-#if(CMAKE_COMPILER_IS_GNUCC)
-#  add_definitions(-std=c99)
-#  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wuninitialized -Wconversion -Wstrict-prototypes")  
-#endif(CMAKE_COMPILER_IS_GNUCC)
+if(CMAKE_COMPILER_IS_GNUCC AND LINUXTEST)
+  add_definitions(-std=c99)
+  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wuninitialized -Wconversion -Wstrict-prototypes")  
+endif(CMAKE_COMPILER_IS_GNUCC AND LINUXTEST)
 
 configure_file (
 	"${PROJECT_SOURCE_DIR}/dmm_config.h.in"