Skip to content

Commit

Permalink
Kommon: build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zykure committed Aug 17, 2022
1 parent f32b167 commit 0b8d344
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Kommon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ kasper_module_debug()
# set(KOMMON_HEADER_FILES)
# set(KOMMON_SOURCE_FILES)

set( KASPER_USE_TBB OFF CACHE BOOL "Use the Intel TBB library in Kommon")
mark_as_advanced( FORCE KASPER_USE_TBB )

# subdirectories
add_subdirectory( cmake )
add_subdirectory( Documentation )
Expand Down
12 changes: 4 additions & 8 deletions Kommon/TBB/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
find_package( TBB REQUIRED )

# headers
set( KOMMON_TBB_HEADER_FILENAMES
set( KOMMON_TBB_HEADER_FILES
Utility/KMathIntegratorThreaded.h
)

# source
#set( KOMMON_TBB_SOURCE_FILENAMES
#set( KOMMON_TBB_SOURCE_FILES
# Utility/KMathIntegratorThreaded.cxx
#)

# propagate path variable to parent scope
#kasper_append_paths( KOMMON_HEADER_FILES ${KOMMON_TBB_HEADER_FILENAMES} )
#kasper_append_paths( KOMMON_SOURCE_FILES ${KOMMON_TBB_SOURCE_FILENAMES} )


# get header paths from collected header files
foreach(HEADER ${KOMMON_BOOST_HEADER_FILES})
Expand All @@ -29,5 +25,5 @@ target_link_libraries(KommonCore
${TBB_LIBRARIES}
)

kasper_install_libraries( KommonCore )
kasper_install_headers( ${KOMMON_TBB_HEADER_FILENAMES} )
#kasper_install_libraries( KommonCore )
kasper_install_headers( ${KOMMON_TBB_HEADER_FILES} )

0 comments on commit 0b8d344

Please sign in to comment.