Skip to content

Commit 4b2a75f

Browse files
committed
Do not overwrite COMPILE_DEFITIONS with set_properties
1 parent 46d953f commit 4b2a75f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ else ()
282282
PROPERTIES
283283
VERSION ${SPARROW_BINARY_VERSION}
284284
SOVERSION ${SPARROW_BINARY_CURRENT}
285-
COMPILE_DEFINITIONS "SPARROW_EXPORTS"
286285
)
286+
target_compile_definitions(sparrow PRIVATE SPARROW_EXPORTS)
287287
endif ()
288288
target_include_directories(sparrow PUBLIC
289289
$<BUILD_INTERFACE:${SPARROW_INCLUDE_DIR}>

0 commit comments

Comments
 (0)