Skip to content

Commit

Permalink
Removes old commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumsden committed Sep 4, 2024
1 parent 0b92982 commit 33838f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 81 deletions.
62 changes: 0 additions & 62 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -289,48 +289,10 @@ include_directories(${CMAKE_SOURCE_DIR}/include) # public header
add_subdirectory(src/dyad)
#cmake_policy(SET CMP0079 NEW) # In case that we need more control over the target building order


#-----------------------------------------------------------------------------
# Configure the config.cmake file for the build directory
#-----------------------------------------------------------------------------
# configure_file(
# ${CMAKE_CURRENT_SOURCE_DIR}/CMake/${PROJECT_NAME}-config.cmake.build.in
# ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/${PROJECT_NAME}/${PROJECT_NAME}-config.cmake @ONLY
# )
#
# configure_file(
# ${CMAKE_CURRENT_SOURCE_DIR}/CMake/${PROJECT_NAME}-config.cmake.install.in
# ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/${PROJECT_NAME}/install/${PROJECT_NAME}-config.cmake @ONLY
# )
# install(
# FILES
# ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/${PROJECT_NAME}/install/${PROJECT_NAME}-config.cmake
# DESTINATION
# ${DYAD_LIBDIR}/cmake/${PROJECT_NAME}
# )
#-----------------------------------------------------------------------------
# Configure the ${PROJECT_NAME}-config-version .cmake file for the install directory
#-----------------------------------------------------------------------------
# configure_file(
# ${CMAKE_CURRENT_SOURCE_DIR}/CMake/${PROJECT_NAME}-config-version.cmake.in
# ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/${PROJECT_NAME}/${PROJECT_NAME}-config-version.cmake @ONLY
# )
#
# install(
# FILES
# ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/${PROJECT_NAME}/${PROJECT_NAME}-config-version.cmake
# DESTINATION
# ${DYAD_LIBDIR}/cmake/${PROJECT_NAME}
# )
#
# export(EXPORT ${DYAD_EXPORTED_TARGETS}
# FILE "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/${PROJECT_NAME}/${PROJECT_NAME}Targets.cmake")

# Write the configure file
configure_file("${CMAKE_SOURCE_DIR}/cmake/configure_files/dyad_config.hpp.in"
"${CMAKE_INCLUDE_OUTPUT_DIRECTORY}/dyad/dyad_config.hpp" @ONLY)


################################################################
# Install DYAD
################################################################
Expand All @@ -349,21 +311,7 @@ write_basic_package_version_file(
file(COPY ${DYAD_BUILD_CMAKE_DIR}/DYADConfigVersion.cmake
DESTINATION ${DYAD_INSTALL_TMP_CMAKE_DIR})

#...........................................
# TODO: There are two different places where cmake config is handled currently.
# Need to clean up and merge

# if (WIP_package_config)
# This is for the build tree
#set(INCLUDE_INSTALL_DIRS
# "${CMAKE_SOURCE_DIR}/src/dyad/common"
# "${CMAKE_SOURCE_DIR}/src/dyad/core"
# "${CMAKE_SOURCE_DIR}/src/dyad/dtl"
# "${CMAKE_SOURCE_DIR}/src/dyad/module"
# "${CMAKE_SOURCE_DIR}/src/dyad/wrapper"
# "${CMAKE_SOURCE_DIR}/src/dyad/utils"
# "${CMAKE_SOURCE_DIR}/src/dyad/utils/base64")
# "${CMAKE_SOURCE_DIR}/include/dyad/stream")
set(EXTRA_CMAKE_MODULE_DIR "${CMAKE_SOURCE_DIR}/cmake/modules")
set(INCLUDE_INSTALL_DIRS ${CMAKE_INCLUDE_OUTPUT_DIRECTORY})
set(LIB_INSTALL_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
Expand Down Expand Up @@ -395,22 +343,12 @@ install(DIRECTORY "${DYAD_INSTALL_TMP_CMAKE_DIR}/" # Trailing slash ensures dire
install(DIRECTORY cmake/modules
DESTINATION "${DYAD_INSTALL_CMAKE_DIR}"
FILES_MATCHING PATTERN "*.cmake")
# endif (WIP_package_config)
#...........................................

install(FILES
"${CMAKE_INCLUDE_OUTPUT_DIRECTORY}/dyad/dyad_config.hpp"
DESTINATION
${DYAD_INSTALL_INCLUDEDIR}/dyad)

# install(EXPORT
# ${DYAD_EXPORTED_TARGETS}
# DESTINATION
# ${DYAD_LIBDIR}/cmake/${PROJECT_NAME}
# FILE
# ${DYAD_EXPORTED_TARGETS}.cmake
# )

# Install license and readme
install(FILES
"${PROJECT_SOURCE_DIR}/NOTICE"
Expand Down
19 changes: 0 additions & 19 deletions cmake/modules/SetupCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,25 +119,6 @@ macro(dyad_add_werror_if_needed target)
endif()
endmacro(dyad_add_werror_if_needed target)

# if (DYAD_WARNINGS_AS_ERRORS)
# dyad_add_cxx_flags(_WERROR_FLAGS -Werror)
# separate_arguments(_WERROR_FLAGS NATIVE_COMMAND "${_WERROR_FLAGS}")
# if (NOT TARGET DYAD_CXX_FLAGS_werror)
# add_library(DYAD_CXX_FLAGS_werror INTERFACE)
# set_property(TARGET DYAD_CXX_FLAGS_werror PROPERTY
# INTERFACE_COMPILE_OPTIONS $<$<COMPILE_LANGUAGE:CXX>:${_WERROR_FLAGS}>)
#
# add_library(DYAD_C_FLAGS_werror INTERFACE)
# set_property(TARGET DYAD_C_FLAGS_werror PROPERTY
# INTERFACE_COMPILE_OPTIONS $<$<COMPILE_LANGUAGE:C>:${_WERROR_FLAGS}>)
#
# # Add the "library" to the export
# install(TARGETS DYAD_C_FLAGS_werror EXPORT ${DYAD_EXPORTED_TARGETS})
# install(TARGETS DYAD_CXX_FLAGS_werror EXPORT ${DYAD_EXPORTED_TARGETS})
# endif ()
# endif ()


################################################################
# Handle compiler dependent behaviors
################################################################
Expand Down

0 comments on commit 33838f0

Please sign in to comment.