Skip to content

Commit 67421c5

Browse files
committed
ifcparse cmake - make compile definition more explicit #7406
1 parent 2e5d87b commit 67421c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ifcparse/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ set_target_properties(IfcParse PROPERTIES COMPILE_FLAGS -DIFC_PARSE_EXPORTS VERS
3636

3737
if(IFCXML_SUPPORT)
3838
find_package(LibXml2 REQUIRED)
39-
add_definitions(-DWITH_IFCXML)
39+
target_compile_definitions(IfcParse PUBLIC WITH_IFCXML)
4040
set(SWIG_DEFINES ${SWIG_DEFINES} -DWITH_IFCXML)
4141

4242
if(LibXml2_DIR)

0 commit comments

Comments
 (0)