Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Remove definitions cmake variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed Aug 7, 2017
1 parent 84504e6 commit d2b8955
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 28 deletions.
7 changes: 0 additions & 7 deletions cmake/setup_dependencies.cmake
Expand Up @@ -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 --#
Expand 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)

############################
Expand Down
4 changes: 0 additions & 4 deletions cmake/setup_optional.cmake
Expand Up @@ -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 --#
Expand Down
3 changes: 0 additions & 3 deletions examples/CMakeLists.txt
Expand Up @@ -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}
Expand Down
7 changes: 0 additions & 7 deletions src/lazyten/CMakeLists.txt
Expand Up @@ -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})
Expand Down
7 changes: 0 additions & 7 deletions tests/CMakeLists.txt
Expand Up @@ -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
Expand Down

0 comments on commit d2b8955

Please sign in to comment.