Skip to content

Commit

Permalink
Merge pull request #112 from thinkingfish/fix_check
Browse files Browse the repository at this point in the history
Fix build without the presence of libcheck
  • Loading branch information
Yao Yue committed May 3, 2016
2 parents 1eb996c + 32f9869 commit b58aeb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ find_package(Threads)
include_directories(${include_directories}
"${PROJECT_BINARY_DIR}"
"${CCOMMON_SOURCE_DIR}/include"
"${PROJECT_SOURCE_DIR}/src"
"${CHECK_INCLUDES}")
"${PROJECT_SOURCE_DIR}/src")

# server
add_subdirectory(src)

# tests: always build last
if(CHECK_WORKING)
include_directories(${include_directories} "${CHECK_INCLUDES}")
add_subdirectory(test)
endif(CHECK_WORKING)

Expand Down
4 changes: 2 additions & 2 deletions deps/ccommon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ find_package(Threads)
# where to find include files
include_directories(${include_directories}
"${PROJECT_BINARY_DIR}"
"include"
"${CHECK_INCLUDES}")
"include")

###################
# things to build #
###################

add_subdirectory(src)
if(CHECK_WORKING)
include_directories(${include_directories} "${CHECK_INCLUDES}")
add_subdirectory(test)
endif(CHECK_WORKING)

Expand Down

0 comments on commit b58aeb7

Please sign in to comment.