Skip to content

Commit

Permalink
cleanup: Findpystring.cmake module
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Lewis <zachcanbereached@gmail.com>
  • Loading branch information
zachlewis committed Nov 4, 2024
1 parent e3255ab commit bdbd474
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/cmake/modules/Findpystring.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
include (FindPackageHandleStandardArgs)

# Copyright Contributors to the OpenImageIO project.
# SPDX-License-Identifier: Apache-2.0
# https://github.com/AcademySoftwareFoundation/OpenImageIO

include (FindPackageHandleStandardArgs)

# Find include directory
find_path(pystring_INCLUDE_DIR
NAMES
Expand Down Expand Up @@ -36,16 +36,12 @@ find_package_handle_standard_args(pystring
)
set(pystring_FOUND ${pystring_FOUND})

###############################################################################
### Configure target ###

if(pystring_FOUND AND NOT TARGET pystring::pystring)
add_library(pystring::pystring UNKNOWN IMPORTED GLOBAL)
set(_pystring_TARGET_CREATE TRUE)
endif()

###############################################################################
### Configure target ###

if(_pystring_TARGET_CREATE)
set_target_properties(pystring::pystring PROPERTIES
Expand All @@ -56,6 +52,3 @@ if(_pystring_TARGET_CREATE)
mark_as_advanced(pystring_INCLUDE_DIR pystring_LIBRARY pystring_VERSION)
endif()




0 comments on commit bdbd474

Please sign in to comment.