Use PRE_LINK

According to
https://cmake.org/cmake/help/latest/command/add_custom_command.html this
more accurately matches the intent
This commit is contained in:
2024-04-04 17:03:57 -07:00
parent 90fdcdd51a
commit 1c900c5a8c
+1 -1
View File
@@ -128,7 +128,7 @@ endif()
if(APPLE)
add_custom_command(
TARGET ${PROJECT_NAME}-static
PRE_BUILD
PRE_LINK
COMMAND ${CMAKE_SOURCE_DIR}/privatize_symbols_macos.sh
$<TARGET_OBJECTS:${PROJECT_NAME}-object>)
else()