Skip to content

Commit

Permalink
Compile with -DFFR_LISTVIEW only if APPLICATION_ID equals fedemGui
Browse files Browse the repository at this point in the history
  • Loading branch information
kmokstad committed Nov 28, 2024
1 parent 0b3b3ce commit 00f4538
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/FFlrLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ set ( UNIT_ID ${DOMAIN_ID}_${PACKAGE_ID}_${LIB_ID} )
message ( STATUS "INFORMATION : Processing unit ${UNIT_ID}" )


if ( NOT "${APPLICATION_ID}" STREQUAL "fedemKernel" )
if ( "${APPLICATION_ID}" STREQUAL "fedemGui" )
string ( APPEND CMAKE_CXX_FLAGS " -DFFR_LISTVIEW" )
endif ( NOT "${APPLICATION_ID}" STREQUAL "fedemKernel" )
endif ( "${APPLICATION_ID}" STREQUAL "fedemGui" )

if ( USE_PROFILER )
string ( APPEND CMAKE_CXX_FLAGS " -DFT_USE_PROFILER" )
Expand Down
2 changes: 1 addition & 1 deletion src/FFpLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if ( "${APPLICATION_ID}" STREQUAL "fedemKernel" )
if ( BUILD_TESTS )
list ( APPEND LIB_ID_LIST FFpTests )
endif ( BUILD_TESTS )
else ( "${APPLICATION_ID}" STREQUAL "fedemKernel" )
elseif ( "${APPLICATION_ID}" STREQUAL "fedemGui" )
string ( APPEND CMAKE_CXX_FLAGS " -DFFR_LISTVIEW" )
endif ( "${APPLICATION_ID}" STREQUAL "fedemKernel" )

Expand Down
2 changes: 1 addition & 1 deletion src/FFrLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ message ( STATUS "INFORMATION : Processing unit ${UNIT_ID}" )

if ( "${APPLICATION_ID}" STREQUAL "fedemKernel" )
string ( APPEND CMAKE_CXX_FLAGS_DEBUG " -DFFR_DEBUG=1" )
else ( "${APPLICATION_ID}" STREQUAL "fedemKernel" )
elseif ( "${APPLICATION_ID}" STREQUAL "fedemGui" )
string ( APPEND CMAKE_CXX_FLAGS " -DFFR_LISTVIEW" )
endif ( "${APPLICATION_ID}" STREQUAL "fedemKernel" )

Expand Down

0 comments on commit 00f4538

Please sign in to comment.