openbsd-ports/graphics/simgear/patches/patch-CMakeLists_txt

27 lines
787 B
Plaintext
Raw Normal View History

$OpenBSD: patch-CMakeLists_txt,v 1.5 2019/06/19 15:29:47 naddy Exp $
2018-05-19 03:07:57 +00:00
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -29,17 +29,17 @@ if(CMAKE_VERSION VERSION_LESS "3.1")
2018-05-19 03:07:57 +00:00
set (CMAKE_CXX_FLAGS "-std=gnu++98 ${CMAKE_CXX_FLAGS}")
endif()
else()
- set (CMAKE_CXX_STANDARD 98)
+ set (CMAKE_CXX_STANDARD 11)
endif()
project(SimGear)
# read 'version' file into a variable (stripping any newlines or spaces)
-file(READ version versionFile)
+file(READ version.txt versionFile)
string(STRIP ${versionFile} SIMGEAR_VERSION)
# add a dependency on the versino file
-set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS version)
+set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS version.txt)
set(FIND_LIBRARY_USE_LIB64_PATHS ON)