Skip to content

Commit faa3b33

Browse files
committed
Move var declarations closer to where they are to be used, and ensure that the variables are populated by dependent engines
1 parent b3c4e5d commit faa3b33

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,6 @@ set(lpf_cflags)
332332
set(lpf_lib_link_flags)
333333
set(lpf_exe_link_flags "-rdynamic")
334334

335-
# Collating all compile & link flags
336-
set(LPF_CORE_COMPILE_FLAGS "${lpf_cflags}" CACHE STRING "Compilation flags for all user code" )
337-
set(LPF_CORE_LIB_LINK_FLAGS "${lpf_lib_link_flags}" CACHE STRING "Flags to link user libraries" )
338-
set(LPF_CORE_EXE_LINK_FLAGS "${lpf_exe_link_flags}" CACHE STRING "Flags to link user executables" )
339-
340335
# Compiling LPF programmes in the build dir
341336
function( target_link_exe_with_core target )
342337
set(engine "imp")
@@ -492,6 +487,10 @@ endif (LPF_ENABLE_TESTS)
492487
add_subdirectory(doc)
493488
add_subdirectory(examples)
494489

490+
# Collating all compile & link flags
491+
set(LPF_CORE_COMPILE_FLAGS "${lpf_cflags}" CACHE STRING "Compilation flags for all user code" )
492+
set(LPF_CORE_LIB_LINK_FLAGS "${lpf_lib_link_flags}" CACHE STRING "Flags to link user libraries" )
493+
set(LPF_CORE_EXE_LINK_FLAGS "${lpf_exe_link_flags}" CACHE STRING "Flags to link user executables" )
495494

496495
# Generation of frontends to be installed
497496
configure_file( lpfcc.in lpfcc @ONLY)

0 commit comments

Comments
 (0)