Permalink
Browse files

Remove definitions cmake variable

  • Loading branch information...
mfherbst committed Aug 7, 2017
1 parent 84504e6 commit d2b89555e3a47986350c220b068e601097cb207d
Showing with 0 additions and 28 deletions.
  1. +0 −7 cmake/setup_dependencies.cmake
  2. +0 −4 cmake/setup_optional.cmake
  3. +0 −3 examples/CMakeLists.txt
  4. +0 −7 src/lazyten/CMakeLists.txt
  5. +0 −7 tests/CMakeLists.txt
@@ -26,10 +26,6 @@
# LAZYTEN_DEPENDENCIES_RELEASE release mode needs these extras
# LAZYTEN_DEPENDENCIES_TEST tests need these extra libraries
#
# LAZYTEN_DEFINITIONS definitions for all compilation
# LAZYTEN_DEFINITIONS_DEBUG definitions for debug mode
# LAZYTEN_DEFINITIONS_RELEASE definitions for release mode
#
####################
#-- Empty it all --#
@@ -38,9 +34,6 @@ set(LAZYTEN_DEPENDENCIES "")
set(LAZYTEN_DEPENDENCIES_DEBUG "")
set(LAZYTEN_DEPENDENCIES_RELEASE "")
set(LAZYTEN_DEPENDENCIES_TEST "")
set(LAZYTEN_DEFINITIONS "")
set(LAZYTEN_DEFINITIONS_DEBUG "")
set(LAZYTEN_DEFINITIONS_RELEASE "")
include_krims_cmake_module(ProjectFeatures)
############################
@@ -26,10 +26,6 @@
# LAZYTEN_DEPENDENCIES_RELEASE release mode needs these extras
# LAZYTEN_DEPENDENCIES_TEST tests need these extra libraries
#
# LAZYTEN_DEFINITIONS definitions for all compilation
# LAZYTEN_DEFINITIONS_DEBUG definitions for debug mode
# LAZYTEN_DEFINITIONS_RELEASE definitions for release mode
#
####################
#-- C++ standard --#
View
@@ -48,9 +48,6 @@ function(setup_example_target TARGET)
COMPILE_DEFINITIONS "${EXAMPLE_BUILD_TYPE}"
)
# setup definitions.
target_compile_definitions(${TARGET} PRIVATE "${LAZYTEN_DEFINITIONS};${LAZYTEN_DEFINITIONS_${EXAMPLE_BUILD_TYPE}}")
# link it with the appropriate lazyten library target
target_link_libraries(${TARGET}
${lazyten_${EXAMPLE_BUILD_TYPE}_TARGET}
@@ -55,13 +55,6 @@ drb_set_target_properties(ALL lazyten
VERSION "${PROJECT_VERSION}"
)
drb_target_compile_definitions(ALL lazyten
PUBLIC ${LAZYTEN_DEFINITIONS})
drb_target_compile_definitions(DEBUG lazyten
PUBLIC ${LAZYTEN_DEFINITIONS_DEBUG})
drb_target_compile_definitions(RELEASE lazyten
PUBLIC ${LAZYTEN_DEFINITIONS_RELEASE})
drb_target_link_libraries(ALL lazyten ${LAZYTEN_DEPENDENCIES})
drb_target_link_libraries(DEBUG lazyten ${LAZYTEN_DEPENDENCIES_DEBUG})
drb_target_link_libraries(RELEASE lazyten ${LAZYTEN_DEPENDENCIES_RELEASE})
View
@@ -77,13 +77,6 @@ drb_add_executable(lazyten_tests
FILES ${LAZYTEN_TESTS_SOURCES}
)
drb_target_compile_definitions(ALL lazyten_tests
PRIVATE ${LAZYTEN_DEFINITIONS})
drb_target_compile_definitions(DEBUG lazyten_tests
PRIVATE ${LAZYTEN_DEFINITIONS_DEBUG})
drb_target_compile_definitions(RELEASE lazyten_tests
PRIVATE ${LAZYTEN_DEFINITIONS_RELEASE})
drb_target_link_libraries(ALL lazyten_tests
${LAZYTEN_DEPENDENCIES} ${LAZYTEN_DEPENDENCIES_TEST})
drb_target_link_libraries(DEBUG lazyten_tests

0 comments on commit d2b8955

Please sign in to comment.