Yet it should be? I'm compiling using babun, (
http://babun.github.io/) which is a cygwin wrapper. Do you have any ideas on how to fix it? Here's my CMakeLists.txt.
Aria@Aria /d/projects/Treetop-paste/build$ cat ../CMakeLists.txt 2 ↵
# CMakeLists.txt
cmake_minimum_required(VERSION 2.6)
project(The_Treetop)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++11")
include_directories(${PROJECT_BINARY_DIR})
set(EXECUTABLE_NAME "The_Treetop")
add_executable(${EXECUTABLE_NAME} src/main.cpp)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
set(SFML_ROOT "${CMAKE_SOURCE_DIR}/sfmlsrc")
MESSAGE(STATUS "nice: " ${SFML_ROOT})
find_package(SFML 2 REQUIRED system window graphics network audio)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES})
install(TARGETS ${EXECUTABLE_NAME} DESTINATION bin)
include(InstallRequiredSystemLibraries)
include(CPack)
Console output:
Aria@Aria /cygdrive/d/Projects/Treetop-paste/build$ make
[ 50%] Building CXX object CMakeFiles/The_Treetop.dir/src/main.cpp.o
In file included from /d/projects/Treetop-paste/sfmlsrc/include/SFML/System.hpp:32:0,
from /d/projects/Treetop-paste/sfmlsrc/include/SFML/Window.hpp:32,
from /d/projects/Treetop-paste/sfmlsrc/include/SFML/Graphics.hpp:32,
from /d/projects/Treetop-paste/src/main.cpp:2:
/d/projects/Treetop-paste/sfmlsrc/include/SFML/Config.hpp:92:10: error: #error This UNIX operating system is not supported by SFML library
#error This UNIX operating system is not supported by SFML library
^
In file included from /d/projects/Treetop-paste/sfmlsrc/include/SFML/Window.hpp:42:0,
from /d/projects/Treetop-paste/sfmlsrc/include/SFML/Graphics.hpp:32,
from /d/projects/Treetop-paste/src/main.cpp:2:
/d/projects/Treetop-paste/sfmlsrc/include/SFML/Window/Window.hpp:106:34: error: expected ‘)’ before ‘handle’
explicit Window(WindowHandle handle, const ContextSettings& settings = ContextSettings());
^
/d/projects/Treetop-paste/sfmlsrc/include/SFML/Window/Window.hpp:151:17: error: ‘WindowHandle’ has not been declared
void create(WindowHandle handle, const ContextSettings& settings = ContextSettings());
^
/d/projects/Treetop-paste/sfmlsrc/include/SFML/Window/Window.hpp:468:5: error: ‘WindowHandle’ does not name a type
WindowHandle getSystemHandle() const;
^
In file included from /d/projects/Treetop-paste/sfmlsrc/include/SFML/Graphics.hpp:47:0,
from /d/projects/Treetop-paste/src/main.cpp:2:
/d/projects/Treetop-paste/sfmlsrc/include/SFML/Graphics/RenderWindow.hpp:94:40: error: expected ‘)’ before ‘handle’
explicit RenderWindow(WindowHandle handle, const ContextSettings& settings = ContextSettings());
^
CMakeFiles/The_Treetop.dir/build.make:62: recipe for target 'CMakeFiles/The_Treetop.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/The_Treetop.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/The_Treetop.dir/all' failed
make[1]: *** [CMakeFiles/The_Treetop.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2