From 3fb822b07bc8f6b0716105f622b810c641fba503 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 30 Sep 2020 13:45:37 +0200 Subject: [PATCH] disable validation code to reduce compilation time --- cmake/CMakeLists.txt | 4 ++-- src/ifcconvert/IfcConvert.cpp | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index acaa829306..47a53706f9 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -713,8 +713,8 @@ set_target_properties(serializers PROPERTIES COMPILE_FLAGS "-DIFC_GEOM_EXPORTS $ TARGET_LINK_LIBRARIES(serializers ${SERIALIZER_SCHEMA_LIBRARIES}) # IfcConvert -file(GLOB IFCCONVERT_CPP_FILES ../src/ifcconvert/*.cpp) -file(GLOB IFCCONVERT_H_FILES ../src/ifcconvert/*.h) +file(GLOB IFCCONVERT_CPP_FILES ../src/ifcconvert/IfcConvert.cpp) +file(GLOB IFCCONVERT_H_FILES ../src/ifcconvert/skip-for-now.h) set(IFCCONVERT_FILES ${IFCCONVERT_CPP_FILES} ${IFCCONVERT_H_FILES}) ADD_EXECUTABLE(IfcConvert ${IFCCONVERT_FILES}) set_target_properties(IfcConvert PROPERTIES COMPILE_FLAGS "${CONVERT_PRECISION}") diff --git a/src/ifcconvert/IfcConvert.cpp b/src/ifcconvert/IfcConvert.cpp index 1cc7a0aa81..850a822e93 100644 --- a/src/ifcconvert/IfcConvert.cpp +++ b/src/ifcconvert/IfcConvert.cpp @@ -142,10 +142,13 @@ bool file_exists(const std::string& filename) { static std::basic_stringstream log_stream; void write_log(bool); + +/* void fix_quantities(IfcParse::IfcFile&, bool, bool, bool); void fix_spaceboundaries(IfcParse::IfcFile&, bool, bool, bool); void fix_storeycontainment(IfcParse::IfcFile&, bool, bool, bool); void fix_wallconnectivity(IfcParse::IfcFile&, bool, bool, bool); +*/ std::string format_duration(time_t start, time_t end); @@ -583,6 +586,7 @@ int main(int argc, char** argv) { time(&start); std::ofstream fs(output_filename.c_str()); if (fs.is_open()) { + /* if (vmap.count("calculate-quantities")) { fix_quantities(*ifc_file, no_progress, quiet, stderr_progress); } @@ -595,6 +599,7 @@ int main(int argc, char** argv) { if (vmap.count("fix-wall-connectivity")) { fix_wallconnectivity(*ifc_file, no_progress, quiet, stderr_progress); } + */ fs << *ifc_file; exit_code = EXIT_SUCCESS; } else {