Skip to content
Snippets Groups Projects
Commit 313d654d authored by Jonathan Hanks's avatar Jonathan Hanks
Browse files

Fixing a cmake configuration issue.

With the awgtpman config to use OBJECT library targets some additional changes where needed.


git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/trunk@4433 6dcd42c9-f523-4c6d-aada-af552506706e
parent 0a17f9de
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,6 @@ endforeach(RPC_TEMPLATE)
# when building with this, so split the C & C++ portions into seperate pieces
add_library(gds_c OBJECT
${CMAKE_CURRENT_BINARY_DIR}/gds_includes
${GDS_BIN_HDRS}
${GDS_SRC}
)
......@@ -213,13 +212,12 @@ target_include_directories(gds_c PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/gds_includes
target_compile_definitions(gds_c PRIVATE -DPORTMAP -DLIGO_GDS -DGDS_NO_EPICS ${max_chnname_size})
add_library(gds_cc OBJECT
${CMAKE_CURRENT_BINARY_DIR}/gds_includes
${GDS_CC_SRC}
)
target_compile_definitions(gds_cc PRIVATE -DPORTMAP -DLIGO_GDS -DGDS_NO_EPICS ${max_chnname_size})
add_executable(awgtpman $<TARGET_OBJECTS:gds_c> $<TARGET_OBJECTS:gds_cc>)
add_executable(awgtpman $<TARGET_OBJECTS:gds_c> $<TARGET_OBJECTS:gds_cc> ${CMAKE_CURRENT_BINARY_DIR}/gds_includes)
target_link_libraries(awgtpman ${CMAKE_THREAD_LIBS_INIT})
#SET( CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-std=gnu99 -I. -I../include -g -DPORTMAP -DLIGO_GDS -DGDS_NO_EPICS ${max_chnname_size}" )
......@@ -261,4 +259,4 @@ target_include_directories(gds_daqd_dc_gds_tp PRIVATE
)
add_library(gds_daqd_dc_gds STATIC $<TARGET_OBJECTS:gds_daqd_dc_gds_main> $<TARGET_OBJECTS:gds_daqd_dc_gds_tp>)
add_library(gds::dc_gds ALIAS gds_daqd_dc_gds)
\ No newline at end of file
add_library(gds::dc_gds ALIAS gds_daqd_dc_gds)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment