mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-20 12:59:46 -06:00
RimWellEventPerf::State and RimWellEventValve::State are aliases for RimWellEventEnums::State, but the AppEnum setUp() specialization was declared in both class headers and defined in RimWellEventPerf.cpp. The Linux unity build failed to link with an undefined reference to caf::AppEnum<RimWellEventEnums::State>::setUp(). Declare the specialization in RimWellEventEnums.h and define it in the new RimWellEventEnums.cpp, so all users see a single declaration and there is a single definition.
20 lines
889 B
CMake
20 lines
889 B
CMake
set(SOURCE_GROUP_SOURCE_FILES
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEvent.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventEnums.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventPerf.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventRawText.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventInsertDate.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventValve.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventSegment.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventState.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventType.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventWellSpec.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventControl.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventKeyword.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventKeywordItem.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimKeywordEvent.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/RimWellEventTimeline.cpp
|
|
)
|
|
|
|
list(APPEND CODE_SOURCE_FILES ${SOURCE_GROUP_SOURCE_FILES})
|