3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-12 22:18:23 +01:00

fixed cmake dependency warnings

This commit is contained in:
Hartmut Hafermann 2014-07-15 14:32:26 +02:00
parent f6da304234
commit 34414cc096
3 changed files with 3 additions and 5 deletions

View File

@ -59,9 +59,6 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel")
set(compiler_name "Intel icc") set(compiler_name "Intel icc")
#string(REGEX REPLACE "[^0-9]*([0-9]+\\.[0-9]\\.[0-9]).*" "\\1" compiler_version ${_compiler_output}) #string(REGEX REPLACE "[^0-9]*([0-9]+\\.[0-9]\\.[0-9]).*" "\\1" compiler_version ${_compiler_output})
# for intel 14.0 /test
link_libraries( -lomp_db )
else () else ()
set(compiler_version_min "0.0") set(compiler_version_min "0.0")
set(compiler_group 0) set(compiler_group 0)

View File

@ -29,7 +29,8 @@ macro (triqs_python_extension ModuleName)
set_property (GLOBAL APPEND PROPERTY TRIQS_PY_CONVERTERS_TARGETS "python_wrap_${ModuleName}") set_property (GLOBAL APPEND PROPERTY TRIQS_PY_CONVERTERS_TARGETS "python_wrap_${ModuleName}")
add_custom_target(python_wrap_${ModuleName} ALL DEPENDS ${wrap_name} ${converter_name}) add_custom_target(python_wrap_${ModuleName} ALL DEPENDS ${wrap_name} ${converter_name})
add_dependencies(python_wrap_${ModuleName} py_copy ${CMAKE_CURRENT_BINARY_DIR}/${ModuleName}_desc.py ) add_dependencies(python_wrap_${ModuleName} py_copy)
#add_dependencies(python_wrap_${ModuleName} ${CMAKE_CURRENT_SOURCE_DIR}/${ModuleName}_desc.py )
add_library(${ModuleName} MODULE ${wrap_name}) add_library(${ModuleName} MODULE ${wrap_name})
set_target_properties(${ModuleName} PROPERTIES PREFIX "") #eliminate the lib in front of the module name set_target_properties(${ModuleName} PROPERTIES PREFIX "") #eliminate the lib in front of the module name