Skip to content

Commit

Permalink
cmake: revert visibility modification to just sloth
Browse files Browse the repository at this point in the history
  • Loading branch information
program-- committed Jan 3, 2024
1 parent 1fe7fc9 commit d26fd1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ if(NGEN_WITH_EXTERN_SLOTH)
GIT_UPDATE "${NGEN_EXT_DIR}/sloth"
IMPORTS slothmodel
)
set_target_properties(slothmodel PROPERTIES CXX_VISIBILITY_PRESET default)
endif()

# -----------------------------------------------------------------------------
Expand Down
6 changes: 1 addition & 5 deletions cmake/ExternalSubdirectory.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ function(add_external_subdirectory)
endif()

if(EXTERNAL_TARGET_IMPORTS STREQUAL "")
if(TARGET ${EXTERNAL_TARGET_IMPORTS})
set_target_properties(${EXTERNAL_TARGET_IMPORTS}
PROPERTIES
CXX_VISIBILITY_PRESET default)
else()
if(NOT TARGET ${EXTERNAL_TARGET_IMPORTS})
message(FATAL_ERROR "Target `${EXTERNAL_TARGET_IMPORTS}` could not be found from subdirectory ${EXTERNAL_TARGET_SOURCE}")
endif()
endif()
Expand Down

0 comments on commit d26fd1c

Please sign in to comment.