Merge pull request #117 from nodegui/feature/fix-cmake-3.1

Using known compilation features from cmake 3.1 instead of 3.15
This commit is contained in:
Atul R 2019-09-22 23:14:20 +02:00 committed by GitHub
commit 146f00018d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

3
.gitignore vendored
View File

@ -3,4 +3,5 @@ node_modules
build
dist
.vscode
.cache
.cache
.DS_Store

View File

@ -3,7 +3,11 @@ function(AddCommonConfig addonName)
SPDLOG_COMPILED_LIB
)
target_compile_features(${addonName} PRIVATE
cxx_std_14
cxx_inheriting_constructors
cxx_lambdas
cxx_auto_type
cxx_variadic_templates
cxx_variable_templates
)
if (WIN32)
target_compile_definitions(${addonName} PRIVATE