Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2018-09-19 12:08:29 +0300
committertamasmeszaros <meszaros.q@gmail.com>2018-09-19 12:08:29 +0300
commit6b655f9aa31018a2269380350c7bdb0c14377ab9 (patch)
tree742267f6c7cb5bf450ef6bd2f97d5d46e109577e /xs
parent7708fb8ada2a71d69969c08ba6639992ddf5ccbc (diff)
parent4bf49fe990d8f894323d52d02b4bcf70e9eebb20 (diff)
Merge branch 'dev2' of github.com:prusa3d/Slic3r into dev2
Diffstat (limited to 'xs')
-rw-r--r--xs/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/xs/CMakeLists.txt b/xs/CMakeLists.txt
index 8aa80278e..7d4c324f4 100644
--- a/xs/CMakeLists.txt
+++ b/xs/CMakeLists.txt
@@ -16,6 +16,12 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fext-numeric-literals" )
endif()
+if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ # On GCC and Clang, no return from a non-void function is a warning only. Here, we make it an error.
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=return-type" )
+endif()
+
+
# Where all the bundled libraries reside?
set(LIBDIR ${CMAKE_CURRENT_SOURCE_DIR}/src/)
# For the bundled boost libraries (boost::nowide)