Skip to content

Commit

Permalink
Merge pull request #1170 from veg/develop
Browse files Browse the repository at this point in the history
2.5.15
  • Loading branch information
spond authored Jun 16, 2020
2 parents 131826d + 6358a29 commit 8bb66c8
Show file tree
Hide file tree
Showing 260 changed files with 1,460 additions and 144,566 deletions.
57 changes: 9 additions & 48 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ set(HYPHY_VERSION 2.1)
# setup the files we'll be using
#-------------------------------------------------------------------------------
file(GLOB SRC_CORE src/core/*.cpp)
file(GLOB SRC_GTESTS tests/gtests/*.cpp)
file(GLOB SRC_NEW src/new/*.cpp)
file(GLOB SRC_CONTRIB src/contrib/*.cpp)

Expand Down Expand Up @@ -276,14 +275,6 @@ if(${CURL_FOUND} AND NOT APPLE)
add_definitions (-D__HYPHYCURL__)
endif(${CURL_FOUND} AND NOT APPLE)

#-------------------------------------------------------------------------------
# gtest dependency
#-------------------------------------------------------------------------------
add_subdirectory(contrib/gtest-1.7.0)
set_property(
TARGET gtest gtest_main
PROPERTY EXCLUDE_FROM_ALL true
)


#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -343,8 +334,6 @@ include_directories(
src/contrib
src/lib/Link src/new/include
contrib/SQLite-3.8.2 # SQLite
contrib/gtest-1.7.0/include
tests/gtests
)


Expand Down Expand Up @@ -449,11 +438,11 @@ set_target_properties(
HYPHY-PROFILE
PROPERTIES
if(${OPENMP_FOUND})
COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS} ${OpenMP_CXX_FLAGS} -g -fprofile-generate "
LINK_FLAGS "${DEFAULT_COMPILE_FLAGS} ${OpenMP_CXX_FLAGS} -g -fprofile-generate "
COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS} ${OpenMP_CXX_FLAGS} -g -fprofile-generate -fanalyzer "
LINK_FLAGS "${DEFAULT_COMPILE_FLAGS} ${OpenMP_CXX_FLAGS} -g -fprofile-generate -fanalyzer "
else(${OPENMP_FOUND})
COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS}-g -fprofile-generate "
LINK_FLAGS "${DEFAULT_COMPILE_FLAGS} -g -fprofile-generate "
COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS}-g -fprofile-generate -fanalyzer "
LINK_FLAGS "${DEFAULT_COMPILE_FLAGS} -g -fprofile-generate -fanalyzer "
endif(${OPENMP_FOUND})
)

Expand All @@ -474,7 +463,7 @@ set_target_properties(
set_target_properties(
HYPHY-GPERF
PROPERTIES
COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS} -g "
COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS} -g "
LINK_FLAGS "${DEFAULT_COMPILE_FLAGS} -g -L/usr/local/Cellar/gperftools/2.7/lib/ -lprofiler -ltcmalloc "
endif(${OPENMP_FOUND})
)
Expand Down Expand Up @@ -517,42 +506,14 @@ set_target_properties(



#-------------------------------------------------------------------------------
# hyphy gtest target
#-------------------------------------------------------------------------------
add_executable(
HYPHYGTEST
EXCLUDE_FROM_ALL
${SRC_COMMON} ${SRC_GTESTS} ${SRC_UNIXMAIN}
)
add_dependencies(HYPHYGTEST gtest)
target_link_libraries(HYPHYGTEST ${DEFAULT_LIBRARIES} gtest)
add_custom_target(GTEST DEPENDS HYPHYGTEST)

set_property(
TARGET HYPHYGTEST
APPEND PROPERTY COMPILE_DEFINITIONS __UNITTEST__
)
set_target_properties(
HYPHYGTEST
PROPERTIES
if(${OPENMP_FOUND})
COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS} ${DEFAULT_DEBUG_WARNING_FLAGS} ${OpenMP_CXX_FLAGS} -msse3 -g -fprofile-arcs -ftest-coverage -pg"
LINK_FLAGS "${DEFAULT_COMPILE_FLAGS} ${DEFAULT_DEBUG_WARNING_FLAGS} ${OpenMP_CXX_FLAGS} -msse3 -g -fprofile-arcs -ftest-coverage -pg"
else(${OPENMP_FOUND})
COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS} ${DEFAULT_DEBUG_WARNING_FLAGS} -msse3 -g -fprofile-arcs -ftest-coverage -pg"
LINK_FLAGS "${DEFAULT_COMPILE_FLAGS} ${DEFAULT_DEBUG_WARNING_FLAGS} -msse3 -g -fprofile-arcs -ftest-coverage -pg"
endif(${OPENMP_FOUND})
)


#-------------------------------------------------------------------------------
# target-specific and occasionally-shared properties
#-------------------------------------------------------------------------------

if(UNIX)
set_property(
TARGET hyphy HYPHYGTEST HYPHYDEBUG HYPHY-PROFILE HYPHY-GPERF
TARGET hyphy HYPHYDEBUG HYPHY-PROFILE HYPHY-GPERF
APPEND PROPERTY COMPILE_DEFINITIONS __UNIX__
)
endif(UNIX)
Expand All @@ -563,18 +524,18 @@ set_property(
)

set_property(
TARGET hyphy HYPHYGTEST HYPHYDEBUG
TARGET hyphy HYPHYDEBUG
APPEND PROPERTY COMPILE_DEFINITIONS _HYPHY_LIBDIRECTORY_="${CMAKE_INSTALL_PREFIX}/share/hyphy"
)

set_property(
TARGET hyphy HYPHYGTEST HYPHYDEBUG HYPHY-PROFILE
TARGET hyphy HYPHYDEBUG HYPHY-PROFILE
APPEND PROPERTY COMPILE_DEFINITIONS _HYPHY_LIBDIRECTORY_="${CMAKE_INSTALL_PREFIX}/share/hyphy"
)


set_property(
TARGET HYPHYDEBUG HYPHYGTEST
TARGET HYPHYDEBUG
APPEND PROPERTY COMPILE_DEFINITIONS __HYPHYDEBUG__
)

Expand Down
157 changes: 0 additions & 157 deletions contrib/gtest-1.7.0/CHANGES

This file was deleted.

Loading

1 comment on commit 8bb66c8

@kjlevitz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Benchmark.js Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 8bb66c8 Previous: 6358a29 Ratio
BGM.wbf Infinity secs/op (±0.000000%) null secs/op (±0.000000%) Infinity
aBSREL.wbf Infinity secs/op (±0.000000%) null secs/op (±0.000000%) Infinity
aBSREL-MH.wbf Infinity secs/op (±0.000000%) null secs/op (±0.000000%) Infinity

This comment was automatically generated by workflow using github-action-benchmark.

CC: @klevitz

Please sign in to comment.