nixpkgs/pkgs/by-name/sh/shark/shark-2-ext-num-literals-all.diff
daspk04 1d3663186c
shark: init at 4.0-unstable-2024-05-25
* init at an unstable version based on commit on 2024-05-25 as no more official release from 4.0.1 onwards.
2024-11-17 12:25:46 +07:00

14 lines
621 B
Diff

diff -burN Shark.orig/CMakeLists.txt Shark/CMakeLists.txt
--- Shark.orig/CMakeLists.txt 2018-02-05 18:04:58.012612932 +0100
+++ Shark/CMakeLists.txt 2018-02-05 18:20:50.032233165 +0100
@@ -415,6 +415,9 @@
#####################################################################
# General Path settings
#####################################################################
+if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ add_definitions(-fext-numeric-literals)
+endif()
include_directories( ${shark_SOURCE_DIR}/include )
include_directories( ${shark_BINARY_DIR}/include )
add_subdirectory( include )