Skip to content

Commit 7823386

Browse files
committed
cpp.cmake: fix comment
1 parent b8093fd commit 7823386

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/cpp.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ endif()
4343
# [LINK_LIBRARIES]: List of **public** libraries to use when linking
4444
# note: ortools::ortools is always linked to the target
4545
# [LINK_OPTIONS]: List of private link options
46+
# [INSTALL_DIR]: relative path to install public headers
4647
# e.g.:
4748
# add_cxx_library(
4849
# NAME
@@ -97,8 +98,8 @@ function(add_cxx_library)
9798
${LIBRARY_HEADERS}
9899
${LIBRARY_SOURCES}
99100
)
100-
target_compile_definitions(${LIBRARY_NAME} PRIVATE ${LIBRARY_COMPILE_DEFINITIONS})
101101
target_compile_features(${LIBRARY_NAME} PRIVATE cxx_std_20)
102+
target_compile_definitions(${LIBRARY_NAME} PRIVATE ${LIBRARY_COMPILE_DEFINITIONS})
102103
target_compile_options(${LIBRARY_NAME} PRIVATE ${LIBRARY_COMPILE_OPTIONS})
103104
target_link_libraries(${LIBRARY_NAME} PUBLIC ${LIBRARY_LINK_LIBRARIES})
104105
target_link_options(${LIBRARY_NAME} PRIVATE ${LIBRARY_LINK_OPTIONS})
@@ -222,6 +223,7 @@ endfunction()
222223
# [LINK_LIBRARIES]: List of **public** libraries to use when linking
223224
# note: ortools::ortools is always linked to the target
224225
# [LINK_OPTIONS]: List of private link options
226+
# [INSTALL_DIR]: relative path to install public headers
225227
# e.g.:
226228
# add_cxx_example(
227229
# NAME

0 commit comments

Comments
 (0)