Skip to content

Commit

Permalink
Clean OgreConfigTargets.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
mosfet80 authored and darksylinc committed Feb 27, 2025
1 parent 44ad517 commit 7162436
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions CMake/Utils/OgreConfigTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ endfunction(ogre_create_vcproj_userfile)
function(ogre_install_target TARGETNAME SUFFIX EXPORT)
# Skip all install targets in SDK
if (OGRE_SDK_BUILD)
return()
return()
endif()

message(STATUS "Installing target: ${TARGETNAME} ${SUFFIX} ${EXPORT}")
Expand Down Expand Up @@ -157,7 +157,6 @@ function(ogre_install_target TARGETNAME SUFFIX EXPORT)
FRAMEWORK DESTINATION "${OGRE_LIB_DIRECTORY}${OGRE_DEBUG_PATH}/Debug" CONFIGURATIONS Debug
)
endif()

endfunction(ogre_install_target)

# setup common target settings
Expand Down Expand Up @@ -210,15 +209,6 @@ function(ogre_config_lib LIBNAME EXPORT)
# install debug pdb files
# Static libs don't have PDBs
if (NOT OGRE_STATIC)
# install(FILES ${OGRE_BINARY_DIR}/lib${OGRE_LIB_DEBUG_PATH}/${LIBNAME}Static_d.pdb
# DESTINATION ${OGRE_LIB_DIRECTORY}${OGRE_LIB_DEBUG_PATH}
# CONFIGURATIONS Debug
# )
# install(FILES ${OGRE_BINARY_DIR}/lib${OGRE_LIB_RELWDBG_PATH}/${LIBNAME}Static.pdb
# DESTINATION ${OGRE_LIB_DIRECTORY}${OGRE_LIB_RELWDBG_PATH}
# CONFIGURATIONS RelWithDebInfo
# )
# else ()
install(FILES ${OGRE_BINARY_DIR}/bin${OGRE_DEBUG_PATH}/${LIBNAME}_d.pdb
DESTINATION bin${OGRE_DEBUG_PATH}
CONFIGURATIONS Debug
Expand Down Expand Up @@ -265,7 +255,7 @@ function(ogre_config_plugin PLUGINNAME)

if(OGRE_BUILD_PLATFORM_APPLE_IOS)
set_xcode_property( ${PLUGINNAME} IPHONEOS_DEPLOYMENT_TARGET ${MIN_IOS_VERSION} )
set_property( TARGET ${PLUGINNAME} PROPERTY XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET[arch=arm64] "9.0" )
set_property( TARGET ${PLUGINNAME} PROPERTY XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET[arch=arm64] "9.0" )
set_target_properties(${PLUGINNAME} PROPERTIES XCODE_ATTRIBUTE_GCC_THUMB_SUPPORT "NO")
set_target_properties(${PLUGINNAME} PROPERTIES XCODE_ATTRIBUTE_GCC_UNROLL_LOOPS "YES")
set_target_properties(${PLUGINNAME} PROPERTIES XCODE_ATTRIBUTE_GCC_PRECOMPILE_PREFIX_HEADER "YES")
Expand All @@ -283,15 +273,6 @@ function(ogre_config_plugin PLUGINNAME)
# install debug pdb files
# Static libs don't have PDBs
if (NOT OGRE_STATIC)
# install(FILES ${OGRE_BINARY_DIR}/lib${OGRE_LIB_DEBUG_PATH}/${PLUGINNAME}Static_d.pdb
# DESTINATION ${OGRE_LIB_DIRECTORY}${OGRE_LIB_DEBUG_PATH}/opt
# CONFIGURATIONS Debug
# )
# install(FILES ${OGRE_BINARY_DIR}/lib${OGRE_LIB_RELWDBG_PATH}/${PLUGINNAME}Static.pdb
# DESTINATION ${OGRE_LIB_DIRECTORY}${OGRE_LIB_RELWDBG_PATH}/opt
# CONFIGURATIONS RelWithDebInfo
# )
# else ()
install(FILES ${OGRE_BINARY_DIR}/bin${OGRE_DEBUG_PATH}/${PLUGINNAME}_d.pdb
DESTINATION bin${OGRE_DEBUG_PATH}
CONFIGURATIONS Debug
Expand Down

0 comments on commit 7162436

Please sign in to comment.