Skip to content
Snippets Groups Projects
Commit e06a2f99 authored by Martin Gels's avatar Martin Gels
Browse files

bug 1005: Tmp solution for cmakefile

parent 84304fa1
No related branches found
No related tags found
No related merge requests found
...@@ -33,8 +33,8 @@ enable_language(ASM-BGP) ...@@ -33,8 +33,8 @@ enable_language(ASM-BGP)
if (CMAKE_ASM-BGP_COMPILER_WORKS) if (CMAKE_ASM-BGP_COMPILER_WORKS)
file(GLOB amsSrcs CorrelatorAsm.S file(GLOB amsSrcs CorrelatorAsm.S
FIR_Asm FIR_Asm.S
FFT_Asm) FFT_Asm.S)
endif (CMAKE_ASM-BGP_COMPILER_WORKS) endif (CMAKE_ASM-BGP_COMPILER_WORKS)
## ------------------------------------------------------------------------------ ## ------------------------------------------------------------------------------
...@@ -77,9 +77,11 @@ target_link_libraries (CN_Processing ...@@ -77,9 +77,11 @@ target_link_libraries (CN_Processing
cnproc cnproc
) )
SET (CMAKE_ASM-BGP_LINK_EXECUTABLE "${ASM-BGP} <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
set_target_properties(CN_Processing set_target_properties(CN_Processing
PROPERTIES LINK_FLAGS "-static" PROPERTIES LINK_FLAGS "-static -g -O2 -W -Wall -Woverloaded-virtual -Wno-unknown-pragmas -B/bgsys/drivers/ppcfloor/gnu-linux/powerpc-bgp-linux/bin"
LINKER_LANGUAGE ASM-BGP
) )
#set_target_properties(CN_Processing #set_target_properties(CN_Processing
......
...@@ -30,8 +30,9 @@ ...@@ -30,8 +30,9 @@
#include <Stream/SocketStream.h> #include <Stream/SocketStream.h>
#include <CNProc/LocationInfo.h> #include <CNProc/LocationInfo.h>
#include <CNProc/CN_Processing.h> #include <CNProc/CN_Processing.h>
#if !defined HAVE_PKVERSION
#include <CNProc/Package__Version.h> #include <CNProc/Package__Version.h>
#endif
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
#include <execinfo.h> #include <execinfo.h>
...@@ -90,12 +91,13 @@ int main(int argc, char **argv) ...@@ -90,12 +91,13 @@ int main(int argc, char **argv)
#endif #endif
LocationInfo locationInfo; LocationInfo locationInfo;
#if !defined HAVE_PKVERSION
if (locationInfo.rank() == 0) { if (locationInfo.rank() == 0) {
std::string type = "brief"; std::string type = "brief";
Version::show<CNProcVersion> (std::cout, "CNProc", type); Version::show<CNProcVersion> (std::cout, "CNProc", type);
} }
#endif
std::clog << "creating connection to ION ..." << std::endl; std::clog << "creating connection to ION ..." << std::endl;
Stream *ionStream; Stream *ionStream;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment