Skip to content

Commit

Permalink
CMake: Centralise C++ version and set to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
weefuzzy committed Apr 28, 2022
1 parent 28b908f commit 7bf0ba3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

cmake_minimum_required(VERSION 3.11)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/release-packaging" CACHE PATH "")
# message(FATAL_ERROR ${CMAKE_INSTALL_PREFIX})

Expand Down
7 changes: 0 additions & 7 deletions scripts/target_post.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ target_include_directories(
"${FLUID_VERSION_PATH}"
)

set_target_properties(${PROG}
PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)

if (APPLE)
#targeting <= 10.9, need to explicitly set libc++
target_compile_options(${PROG} PRIVATE -stdlib=libc++)
Expand Down

0 comments on commit 7bf0ba3

Please sign in to comment.