Skip to content

Commit 7e48d71

Browse files
committed
cmake - fix error building with GLTF_SUPPORT=OFF (487a4f3, #7390)
1 parent 9eedbc6 commit 7e48d71

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

src/serializers/JsonSerializer.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/********************************************************************************
2+
* *
3+
* This file is part of IfcOpenShell. *
4+
* *
5+
* IfcOpenShell is free software: you can redistribute it and/or modify *
6+
* it under the terms of the Lesser GNU General Public License as published by *
7+
* the Free Software Foundation, either version 3.0 of the License, or *
8+
* (at your option) any later version. *
9+
* *
10+
* IfcOpenShell is distributed in the hope that it will be useful, *
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13+
* Lesser GNU General Public License for more details. *
14+
* *
15+
* You should have received a copy of the Lesser GNU General Public License *
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17+
* *
18+
********************************************************************************/
19+
20+
#ifdef WITH_GLTF
21+
122
#include "JsonSerializer.h"
223

324
#include <boost/algorithm/string/case_conv.hpp>
@@ -40,3 +61,5 @@ JsonSerializerFactory::Factory& JsonSerializerFactory::implementations() {
4061
static JsonSerializerFactory::Factory impl;
4162
return impl;
4263
}
64+
65+
#endif

0 commit comments

Comments
 (0)