message("Build type -- ${CMAKE_BUILD_TYPE}")
message("Compiler version: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
+message("System: ${CMAKE_SYSTEM_NAME} version: ${CMAKE_SYSTEM_VERSION}")
message("Target architecture: ${CMAKE_TARGET_ARCHITECTURE}")
if(CMAKE_BUILD_TYPE STREQUAL "DEBUG")
message("Compiler flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG}")
message("Boost: Using CMake-fied boost")
endif()
+if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
+ set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> -q -c ${CMAKE_STATIC_LINKER_FLAGS} -o <TARGET> <OBJECTS>")
+endif()
include_directories(${PROJECT_SOURCE_DIR})
if (NOT GTEST_INCLUDE_DIRS)
find_package(GTest REQUIRED)
endif()
-message("GTest: ${GTEST_INCLUDE_DIRS}, lib: ${GTEST_LIBRARY}")
+message("GTest: ${GTEST_INCLUDE_DIRS}, lib: ${GTEST_LIBRARIES}")
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/include
set(CDS_TEST_LIBRARIES
${CDS_SHARED_LIBRARY}
- ${GTEST_LIBRARY}
+ ${GTEST_LIBRARIES}
${Boost_THREAD_LIBRARY}
${Boost_SYSTEM_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}