Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
Fixed windows build system
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarlopro committed May 25, 2018
1 parent 3a09378 commit 43fff5f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ project(ExampleBots)

include_directories (${PROJECT_SOURCE_DIR}/../include)

add_definitions("-g")
# Search for the required libraries, erroring out if they aren't found
find_library(JANSSON_LIB NAMES jansson)
find_package(CURL REQUIRED)
# Add the include directories for the libraries
include_directories(${CURL_INCLUDE_DIRS})

if(UNIX)
add_definitions("-g")

if(NOT CMAKE_SYSTEM_NAME STREQUAL Linux AND NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
# This is probably an unsupported BSD or OSX.
# Show an error, but try to proceed.
message(SEND_ERROR "Only Linux, FreeBSD and Windows are supported at this time.")
endif()

# Search for the required libraries, erroring out if they aren't found
find_library(JANSSON_LIB NAMES jansson)
find_package(CURL REQUIRED)
# Add the include directories for the libraries
include_directories(${CURL_INCLUDE_DIRS})
endif()

add_executable(echo echo.c)
Expand Down

0 comments on commit 43fff5f

Please sign in to comment.