fix(linux): fixed linux compilation
This commit is contained in:
@@ -5,9 +5,10 @@ mfem_cmake_options.add_cmake_defines({
|
|||||||
'MFEM_ENABLE_TESTING': 'OFF',
|
'MFEM_ENABLE_TESTING': 'OFF',
|
||||||
'MFEM_ENABLE_MINIAPPS': 'OFF',
|
'MFEM_ENABLE_MINIAPPS': 'OFF',
|
||||||
'MFEM_USE_BENCMARK': 'OFF',
|
'MFEM_USE_BENCMARK': 'OFF',
|
||||||
'BUILD_SHARED_LIBS': 'ON',
|
'BUILD_SHARED_LIBS': 'OFF',
|
||||||
'CMAKE_SKIP_INSTALL_RULES': 'ON'
|
'BUILD_STATIC_LIBS': 'ON',
|
||||||
})
|
})
|
||||||
|
mfem_cmake_options.set_install(true)
|
||||||
|
|
||||||
mfem_sp = cmake.subproject(
|
mfem_sp = cmake.subproject(
|
||||||
'mfem',
|
'mfem',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[wrap-git]
|
[wrap-git]
|
||||||
url = https://github.com/4D-STAR/libconfig.git
|
url = https://github.com/4D-STAR/libconfig.git
|
||||||
revision = v2.0.4
|
revision = v2.0.5
|
||||||
depth = 1
|
depth = 1
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
gtest_dep = dependency('gtest', main: true, required : true)
|
gtest_dep = dependency('gtest', main: true, required : true)
|
||||||
gtest_main = dependency('gtest_main', required: true)
|
gtest_main = dependency('gtest_main', required: true)
|
||||||
gtest_nomain_dep = dependency('gtest', main: false, required : true)
|
gtest_nomain_dep = dependency('gtest', main: false, required : true)
|
||||||
|
threads_dep = dependency('threads')
|
||||||
|
|
||||||
# Test files for const
|
# Test files for const
|
||||||
test_sources = [
|
test_sources = [
|
||||||
@@ -14,6 +15,7 @@ foreach test_file : test_sources
|
|||||||
exe_name,
|
exe_name,
|
||||||
test_file,
|
test_file,
|
||||||
dependencies: [
|
dependencies: [
|
||||||
|
threads_dep,
|
||||||
stroid_dep,
|
stroid_dep,
|
||||||
gtest_dep,
|
gtest_dep,
|
||||||
gtest_main
|
gtest_main
|
||||||
|
|||||||
Reference in New Issue
Block a user