From 73d60324208d33f5e56a00ccb73cc1fa807841b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Veleck=C3=BD?= Date: Mon, 4 Sep 2023 17:00:18 +0200 Subject: [PATCH] Solving the C++ standard issue, https://github.com/flexible-collision-library/fcl/issues/604 --- CMakeModules/CompilerSettings.cmake | 10 +++++----- fcl.pc.in | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeModules/CompilerSettings.cmake b/CMakeModules/CompilerSettings.cmake index 96b9e1f73..645ca3805 100644 --- a/CMakeModules/CompilerSettings.cmake +++ b/CMakeModules/CompilerSettings.cmake @@ -33,7 +33,7 @@ # GCC if(CMAKE_COMPILER_IS_GNUCXX) - add_definitions(-std=c++11 -W -Wall -Wextra -Wpedantic) + add_definitions(-W -Wall -Wextra -Wpedantic) if(FCL_TREAT_WARNINGS_AS_ERRORS) add_definitions(-Werror) endif() @@ -41,7 +41,7 @@ endif() # Clang if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - add_definitions(-std=c++11 -W -Wall -Wextra) + add_definitions(-W -Wall -Wextra) if(FCL_TREAT_WARNINGS_AS_ERRORS) add_definitions(-Werror) endif() @@ -53,7 +53,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.1) message(FATAL_ERROR "AppleClang version must be at least 6.1!") endif() - add_definitions(-std=c++11 -W -Wall -Wextra) + add_definitions(-W -Wall -Wextra) if(FCL_TREAT_WARNINGS_AS_ERRORS) add_definitions(-Werror) endif() @@ -77,7 +77,7 @@ else() set(IS_ICPC 0) endif() if(IS_ICPC) - add_definitions(-std=c++11 -wd191 -wd411 -wd654 -wd1125 -wd1292 -wd1565 -wd1628 -wd2196) + add_definitions(-wd191 -wd411 -wd654 -wd1125 -wd1292 -wd1565 -wd1628 -wd2196) set(CMAKE_AR "xiar" CACHE STRING "Intel archiver" FORCE) set(CMAKE_CXX_FLAGS "-pthread" CACHE STRING "Default compile flags" FORCE) set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" @@ -97,7 +97,7 @@ else() set(IS_XLC 0) endif() if(IS_XLC) - add_definitions(-std=c++11 -qpic -q64 -qmaxmem=-1) + add_definitions(-qpic -q64 -qmaxmem=-1) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -q64") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -q64") endif() diff --git a/fcl.pc.in b/fcl.pc.in index cb5ad784d..8d7bfca22 100644 --- a/fcl.pc.in +++ b/fcl.pc.in @@ -9,4 +9,4 @@ Description: @PKG_DESC@ Version: @FCL_VERSION@ Requires: @PKG_EXTERNAL_DEPS@ Libs: -L${libdir} -l@PROJECT_NAME@ -Cflags: @PKG_CFLAGS@ -I${includedir} +Cflags: -I${includedir}