diff options
Diffstat (limited to 'api_test')
-rw-r--r-- | api_test/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/api_test/CMakeLists.txt b/api_test/CMakeLists.txt index 66629d8..b2ab2c8 100644 --- a/api_test/CMakeLists.txt +++ b/api_test/CMakeLists.txt @@ -9,3 +9,11 @@ include_directories( ) target_link_libraries(api_test libcmark) +# Compiler flags +if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") + set_target_properties(api_test PROPERTIES COMPILE_FLAGS + "-std=c99 -Wall -Wextra" + ) +elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC") + set_target_properties(api_test PROPERTIES COMPILE_FLAGS "/TP /W4") +endif() |