Skip to content

Commit

Permalink
Fix build in release mode on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Oct 8, 2024
1 parent 2005977 commit ac68864
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/cmake/xtd_commands.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ macro(target_type TYPE)
target_link_libraries(${TARGET_NAME} INTERFACE ${PROJECT_REFERENCES})
else ()
set(PROJECT_ALL_REFERENCES "${PROJECT_TYPE_REFERENCE};${PROJECT_REFERENCES}")
list(REMOVE_DUPLICATES PROJECT_ALL_REFERENCES)
target_link_libraries(${TARGET_NAME} ${PROJECT_ALL_REFERENCES})
endif ()
if ("${TYPE}" STREQUAL "TEST_APPLICATION")
Expand Down Expand Up @@ -1106,7 +1105,6 @@ endmacro()
macro(add_references)
message(VERBOSE "Add references [${ARGN}]...")
set(PROJECT_REFERENCES "${PROJECT_REFERENCES};${ARGN}")
list(REMOVE_DUPLICATES PROJECT_REFERENCES)
endmacro()

## @brief Adds resource to current project.
Expand Down Expand Up @@ -2174,9 +2172,7 @@ set(CMAKE_C_STANDARD_REQUIRED ON)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
if ("${BUILD_TYPE}" STREQUAL "Debug")
set(CMAKE_DEBUG_POSTFIX d)
endif()
set(CMAKE_DEBUG_POSTFIX d)

enable_testing()

Expand Down

0 comments on commit ac68864

Please sign in to comment.