Skip to content

Commit 2d127b5

Browse files
committed
cpp.cmake: add missing comment
1 parent ae35b7e commit 2d127b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/cpp.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ endmacro()
8888
# [LINK_LIBRARIES]: List of **public** libraries to use when linking
8989
# note: ortools::ortools is always linked to the target
9090
# [LINK_OPTIONS]: List of private link options
91+
# [INSTALL_DIR]: relative path to install public headers
9192
# e.g.:
9293
# add_cxx_library(
9394
# NAME
@@ -142,8 +143,8 @@ function(add_cxx_library)
142143
${LIBRARY_HEADERS}
143144
${LIBRARY_SOURCES}
144145
)
145-
target_compile_definitions(${LIBRARY_NAME} PRIVATE ${LIBRARY_COMPILE_DEFINITIONS})
146146
target_compile_features(${LIBRARY_NAME} PRIVATE cxx_std_20)
147+
target_compile_definitions(${LIBRARY_NAME} PRIVATE ${LIBRARY_COMPILE_DEFINITIONS})
147148
target_compile_options(${LIBRARY_NAME} PRIVATE ${LIBRARY_COMPILE_OPTIONS})
148149
target_link_libraries(${LIBRARY_NAME} PUBLIC ${LIBRARY_LINK_LIBRARIES})
149150
target_link_options(${LIBRARY_NAME} PRIVATE ${LIBRARY_LINK_OPTIONS})

0 commit comments

Comments
 (0)