Skip to content

Commit

Permalink
refactoring and fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
okolo committed Sep 30, 2024
1 parent f8ddb8f commit 0d019bb
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 16,457 deletions.
10 changes: 4 additions & 6 deletions src/app/crbeam/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 2.6)
cmake_minimum_required (VERSION 3.13)
project (CRbeam)
# uncomment the line below for verbose output
#set(CMAKE_VERBOSE_MAKEFILE ON)
Expand All @@ -11,15 +11,15 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG -O0")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG -O0 -pg")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall -O2")
set(CMAKE_PREFIX_PATH "external")
#set(CMAKE_PREFIX_PATH "external")

# -rdynamic flux is only supported on systems with ELF executable format
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -rdynamic")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -rdynamic")
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

FIND_LIBRARY(C_LIBRARY c)
# FIND_LIBRARY(C_LIBRARY c)
FIND_LIBRARY(GSL_LIBRARY gsl)
FIND_LIBRARY(GSLCBLAS_LIBRARY gslcblas)
FIND_LIBRARY(BOOST_FS_LIBRARY boost_filesystem)
Expand All @@ -34,6 +34,4 @@ CRbeam.h
)
add_link_options(-fopenmp)
add_executable(CRbeam ${SOURCE_FILES})
target_link_libraries(CRbeam mcray ${BOOST_SYS_LIBRARY} ${BOOST_FS_LIBRARY} ${C_LIBRARY} ${GSL_LIBRARY} ${GSLCBLAS_LIBRARY} ${CMAKE_DL_LIBS})


target_link_libraries(CRbeam mcray ${BOOST_SYS_LIBRARY} ${BOOST_FS_LIBRARY} ${GSL_LIBRARY} ${GSLCBLAS_LIBRARY} ${CMAKE_DL_LIBS})
140 changes: 0 additions & 140 deletions src/external/SOPHIA/README.TXT

This file was deleted.

Loading

0 comments on commit 0d019bb

Please sign in to comment.