Skip to content

Commit 9e10f1f

Browse files
committed
Make LIBSCRATCHCPP macros public
1 parent d47e36a commit 9e10f1f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ if(LIBSCRATCHCPP_LLVM_INTEGER_SUPPORT)
147147
endif()
148148

149149
# Macros
150-
target_compile_definitions(scratchcpp PRIVATE LIBSCRATCHCPP_LIBRARY)
151-
target_compile_definitions(scratchcpp PRIVATE LIBSCRATCHCPP_VERSION="${PROJECT_VERSION}")
152-
target_compile_definitions(scratchcpp PRIVATE LIBSCRATCHCPP_VERSION_MAJOR=${PROJECT_VERSION_MAJOR})
153-
target_compile_definitions(scratchcpp PRIVATE LIBSCRATCHCPP_VERSION_MINOR=${PROJECT_VERSION_MINOR})
154-
target_compile_definitions(scratchcpp PRIVATE LIBSCRATCHCPP_VERSION_PATCH=${PROJECT_VERSION_PATCH})
150+
target_compile_definitions(scratchcpp PUBLIC LIBSCRATCHCPP_LIBRARY)
151+
target_compile_definitions(scratchcpp PUBLIC LIBSCRATCHCPP_VERSION="${PROJECT_VERSION}")
152+
target_compile_definitions(scratchcpp PUBLIC LIBSCRATCHCPP_VERSION_MAJOR=${PROJECT_VERSION_MAJOR})
153+
target_compile_definitions(scratchcpp PUBLIC LIBSCRATCHCPP_VERSION_MINOR=${PROJECT_VERSION_MINOR})
154+
target_compile_definitions(scratchcpp PUBLIC LIBSCRATCHCPP_VERSION_PATCH=${PROJECT_VERSION_PATCH})
155155

156156
# Unit tests
157157
target_link_libraries(scratchcpp PRIVATE scratchcpp-test-export)

0 commit comments

Comments
 (0)