File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,16 +25,17 @@ set(libflcarr_HEADERS
2525
2626add_library (flcarr OBJECT ${libflcarr_SOURCES} )
2727
28- target_compile_options (flcarr PRIVATE "${OpenMP_C_FLAGS} " )
29-
3028target_include_directories (flcarr BEFORE PUBLIC
3129 "${CMAKE_CURRENT_SOURCE_DIR} /libflacarray"
3230)
3331
3432target_include_directories (flcarr PUBLIC "${FLAC_INCLUDE_DIRS} " )
3533target_link_libraries (flcarr PUBLIC "${FLAC_LIBRARIES} " )
3634
37- target_link_libraries (flcarr PUBLIC "${OpenMP_C_LIBRARIES} " )
35+ if (OpenMP_C_Found)
36+ target_compile_options (flcarr PRIVATE "${OpenMP_C_FLAGS} " )
37+ target_link_libraries (flcarr PUBLIC "${OpenMP_C_LIBRARIES} " )
38+ endif ()
3839
3940# Create an shared library, usable by external compiled software
4041
Original file line number Diff line number Diff line change 11# Install python files
22
33set (CONF_EXTRA_LIBS "${FLAC_LIBRARIES} " )
4- set (CONF_EXTRA_FLAGS "${OpenMP_C_FLAGS} " )
4+ if (OpenMP_C_FOUND)
5+ set (CONF_EXTRA_FLAGS "${OpenMP_C_FLAGS} " )
6+ else ()
7+ set (CONF_EXTRA_FLAGS "" )
8+ endif ()
59
610configure_file (
711 "${CMAKE_CURRENT_SOURCE_DIR} /config.py.in" # Input file path
You can’t perform that action at this time.
0 commit comments