nickgillian / grt

gesture recognition toolkit
859 stars 285 forks source link

Unable to disable C++11 support in the current version #120

Open alberto-tellaeche opened 7 years ago

alberto-tellaeche commented 7 years ago

Hello all; For my system, I want to test the library, but I would like to disable the C++11 support. I have been looking at the CMakeLists.txt, and C++11 is by default with no effect of the cmake flag ENABLE_CXX11_SUPPORT. I am in linux, can I simply modify the compiler flags under

if(UNIX) 
    message(STATUS "Building " ${LIB_BUILD_TYPE_INFO}  " library for UNIX/Linux")
    configure_file(grt.pc.in ${CMAKE_CURRENT_BINARY_DIR}/grt.pc @ONLY)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++11")
    set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
endif()

In the CMakeLists.txt ?

Thank you in advance,

BobbyCGD commented 7 years ago

If you look at the commits you will see this https://github.com/nickgillian/grt/commit/a2edfccdb6c743c39abfb40fbbf52ae4087ae7f1 just get the previous version or revert the setting?