Skip to content

Commit 080e48b

Browse files
committed
Use C++17 to build if we find POCO 1.14 or higher.
1 parent 9d93ead commit 080e48b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ find_package(projectM4 REQUIRED COMPONENTS Playlist)
7575
find_package(SDL2 REQUIRED)
7676
find_package(Poco REQUIRED COMPONENTS JSON XML Util Foundation)
7777

78+
if(Poco_VERSION VERSION_GREATER_EQUAL 1.14.0)
79+
# POCO 1.14 requires at least C++17
80+
set(CMAKE_CXX_STANDARD 17)
81+
endif()
82+
7883
if(ENABLE_FREETYPE)
7984
find_package(Freetype)
8085
endif()

0 commit comments

Comments
 (0)