File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.10)
22project (pystring LANGUAGES CXX VERSION 1.1.4)
33
4+ set (CMAKE_CXX_STANDARD 11)
5+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
6+ set (CMAKE_CXX_EXTENSIONS OFF )
7+
48option (BUILD_SHARED_LIBS "Build shared libraries (set to OFF to build static libs)" ON )
59option (PYSTRING_HEADER_ONLY "Build as header-only library" OFF )
610
@@ -13,6 +17,7 @@ if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
1317 "Installation location" FORCE)
1418endif ()
1519message (STATUS "Installation path will be ${CMAKE_INSTALL_PREFIX} " )
20+ include (GNUInstallDirs)
1621
1722if (PYSTRING_HEADER_ONLY)
1823 message (STATUS "Building pystring as header-only library" )
@@ -63,4 +68,3 @@ TARGET_LINK_LIBRARIES (pystring_test pystring)
6368enable_testing ()
6469add_test (NAME PyStringTest COMMAND pystring_test)
6570
66- include (GNUInstallDirs)
You can’t perform that action at this time.
0 commit comments