diff --git a/src/CompResources.h b/src/CompResources.h index a33317a64..a60a53bf0 100644 --- a/src/CompResources.h +++ b/src/CompResources.h @@ -59,7 +59,7 @@ class ATTR_DLL_LOCAL CCompResources * \brief Get the current screen info. * \return The screen info. */ - ScreenInfo GetScreenInfo() { return m_screenInfo.load(); } + ScreenInfo GetScreenInfo() const { return m_screenInfo.load(); } /*! * \brief Set the screen info. diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 2ed234956..5e5dd4811 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -53,7 +53,7 @@ add_executable(${BINARY} ../utils/XMLUtils.cpp ) -target_link_libraries(${BINARY} PRIVATE ${BENTO4_LIBRARIES} ${PUGIXML_LIBRARIES} ${GTEST_LIBRARIES} Threads::Threads ${CMAKE_DL_LIBS}) +target_link_libraries(${BINARY} PRIVATE ${BENTO4_LIBRARIES} ${PUGIXML_LIBRARIES} ${GTEST_LIBRARIES} Threads::Threads ${CMAKE_DL_LIBS} atomic) set(TEST_DATA_DIR "${CMAKE_SOURCE_DIR}/src/test/manifests") add_test(NAME manifest_tests COMMAND ${BINARY} "${TEST_DATA_DIR}")