My CMake modules, scripts, templates
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CFlagsCommonRules.cmake 567B

123456789101112
  1. SET (CMAKE_C_FLAGS_DEBUG "-ggdb3 -O0 -ftest-coverage -Wcoverage-mismatch ${CMAKE_C_FLAGS_DEBUG}")
  2. SET (CMAKE_C_FLAGS_RELEASE "-O2 ${CMAKE_C_FLAGS_RELEASE}")
  3. IF (CMAKE_BUILD_TYPE STREQUAL "Debug")
  4. SET (VALA_DEBUG "-g")
  5. ENDIF ()
  6. SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") # supress Gcc warnings
  7. # FreeBSD: Clang linker uses '/usr/local/lib' directory
  8. IF (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
  9. SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS} -L/usr/local/lib")
  10. SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/usr/local/lib")
  11. ENDIF ()