|
@@ -6,7 +6,7 @@ if ( NOT CMAKE_INSTALL_PREFIX )
|
6
|
6
|
endif()
|
7
|
7
|
|
8
|
8
|
if ( NOT SLOP_LEGACY_MODE )
|
9
|
|
- set(SLOP_LEGACY_MODE FALSE CACHE BOOL "Legacy mode requires the XShape extension, is laggy, isn't guaranteed to be invisible on shutdown, isn't guaranteed to support opacity, and doesn't support custom shaders. Though it still might be desired since it doesn't require OpenGL to use.")
|
|
9
|
+ set(SLOP_LEGACY_MODE FALSE CACHE BOOL "Legacy mode requires the XShape extension, is laggy, isn't guaranteed to be invisible on shutdown, isn't guaranteed to support opacity, doesn't support custom shaders, and requires C++11 for the sleep_for functions. Though it still might be desired since it doesn't require OpenGL to use.")
|
10
|
10
|
endif()
|
11
|
11
|
|
12
|
12
|
project(slop)
|
|
@@ -63,6 +63,8 @@ if ( SLOP_LEGACY_MODE )
|
63
|
63
|
find_package(XExt REQUIRED)
|
64
|
64
|
include_directories(${XEXT_INCLUDE_DIR})
|
65
|
65
|
target_link_libraries(${EXECUTABLE_NAME} ${XEXT_LIBRARIES})
|
|
66
|
+ set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_STANDARD 11)
|
|
67
|
+ set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
|
66
|
68
|
else()
|
67
|
69
|
find_package(GLX REQUIRED)
|
68
|
70
|
find_package(OpenGL REQUIRED)
|