diff --git a/CMakeLists.txt b/CMakeLists.txt index 60aa8d56..ba9f110d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required(VERSION 3.12) set(MACOSX_DEPLOYMENT_TARGET 10.10) +# Use release build type as default (assimp complains if this is unset) +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Release) +endif() + project(PrimeWorldEditor CXX) include(./dew.cmake) @@ -10,7 +15,11 @@ include(cmake/generate_product_version.cmake) if(MSVC) add_compile_options(/WX /wd4267 /wd4100 /wd4101 /wd4189) -elseif(APPLE) +else() + add_compile_options(-Wno-multichar) +endif() + +if(APPLE) add_compile_definitions(GL_SILENCE_DEPRECATION) endif() diff --git a/src/Editor/CProgressDialog.h b/src/Editor/CProgressDialog.h index 98e6abe9..9290d556 100644 --- a/src/Editor/CProgressDialog.h +++ b/src/Editor/CProgressDialog.h @@ -73,12 +73,12 @@ public: InternalWaitForResults(Future); return Future.result(); } - - template<> - void WaitForResults(QFuture Future) - { - InternalWaitForResults(Future); - } }; +template<> +inline void CProgressDialog::WaitForResults(QFuture Future) +{ + InternalWaitForResults(Future); +} + #endif // CPROGRESSDIALOG_H