Skip to content

Commit

Permalink
buildable under ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
ony committed Feb 27, 2014
1 parent 703c185 commit 34755dc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})
set(ENABLE_TRACES FALSE CACHE BOOL "Trace to stderr all parsing steps")
set(DEVELOPMENT TRUE CACHE BOOL "Development mode (more suitable makefiles)")

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -Wno-unused-function")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -Wno-unused-function -Wno-missing-field-initializers")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c1x")
if(ENABLE_TRACES)
add_definitions(-DENABLE_TRACES)
endif()
Expand Down
2 changes: 1 addition & 1 deletion cmake_modules/FindGTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function(GTEST_ADD_TESTS executable extra_args)
message(FATAL_ERROR "Missing ARGN: Read the documentation for GTEST_ADD_TESTS")
endif()
if(ARGN STREQUAL "AUTO")
get_target_property(ARGN ${executable} SOURCES)
get_property(ARGN TARGET ${executable} PROPERTY SOURCES)
endif()
foreach(source ${ARGN})
file(READ "${source}" contents)
Expand Down
1 change: 0 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ foreach(TEST ${TESTS})
endif()
endforeach()
add_dependencies(check ${TESTS})

1 change: 0 additions & 1 deletion test_ansi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ foreach(TEST c cpp)
target_link_libraries(dummy-${TEST} pjson)
add_dependencies(check dummy-${TEST})
endforeach()

0 comments on commit 34755dc

Please sign in to comment.