Merge pull request #61 from okhowang/no-exception

fixes #60, refs #43, support for usage in projects with exceptions disabled
This commit is contained in:
gulrak 2020-04-07 19:48:30 +02:00 committed by GitHub
commit 2ad75e1ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 303 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -52,3 +52,9 @@ if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
target_compile_definitions(fwd_impl_test PRIVATE _CRT_SECURE_NO_WARNINGS) target_compile_definitions(fwd_impl_test PRIVATE _CRT_SECURE_NO_WARNINGS)
endif() endif()
add_test(fwd_impl_test fwd_impl_test) add_test(fwd_impl_test fwd_impl_test)
add_executable(exception exception.cpp)
if(NOT MSVC)
target_compile_options(exception PRIVATE -fno-exceptions)
endif()
target_include_directories(exception PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include)

5
test/exception.cpp Normal file
View File

@ -0,0 +1,5 @@
#include <ghc/filesystem.hpp>
int main() {
return 0;
}