Commit 7c898498 authored by Simon Boyé's avatar Simon Boyé

Fixed CMakeLists.txt warning code and removed a warning (Wlong-long) triggerd by Qt for mvg_editor.

parent 5885c108
......@@ -82,7 +82,9 @@ endif(DOXYGEN_FOUND)
# enable extra warnings
if (CMAKE_COMPILER_IS_GNUCXX)
list( APPEND CMAKE_CXX_FLAGS "-Wall -Wpedantic -Wextra -Wdouble-promotion ${CMAKE_CXX_FLAGS}")
# Do NOT use list( APPEND ... ) with flags, as adding flags to a non-empty
# CMAKE_[...]_FLAGS introduces unwanted semicolons.
set( CMAKE_CXX_FLAGS "-Wall -Wpedantic -Wextra -Wdouble-promotion ${CMAKE_CXX_FLAGS}")
endif (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
......
......@@ -30,6 +30,11 @@ endif()
if(NOT mvg_editor_MISSING)
set(CMAKE_AUTOMOC ON)
# Remove a warning triggred by Qt.
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "-Wno-long-long ${CMAKE_CXX_FLAGS}")
endif(CMAKE_COMPILER_IS_GNUCXX)
include_directories(
${EIGEN3_INCLUDE_DIR}
${OPENGL_INCLUDE_DIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment