Skip to content

Commit

Permalink
Remove debug postfix from ACE build for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
miles200 committed Mar 13, 2020
1 parent 9224514 commit 141f250
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 3rd_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(BUILD_COX_MAP_VIEWER)
else()
endif()
include(ExternalProject_ACE.cmake)
if(MINGW) # ERICEDIT: If the OS is Windows:
if(MINGW OR MSVC) # ERICEDIT: If the OS is Windows:
add_custom_target( # ERICEDIT: Add a target that depends on authserver.
libace ALL
DEPENDS ace_IMP
Expand Down
8 changes: 4 additions & 4 deletions 3rd_party/ExternalProject_ACE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ add_dependencies(ace_IMP ACE_BUILD)
SET_PROPERTY(TARGET ace_IMP APPEND PROPERTY IMPORTED_LOCATION ${ace_LIBRARY_SHARED} )
SET_PROPERTY(TARGET ace_IMP APPEND PROPERTY IMPORTED_IMPLIB ${ace_LIBRARY_IMP} )

if(MSVC)
SET_PROPERTY(TARGET ace_IMP APPEND PROPERTY IMPORTED_LOCATION_DEBUG ${ace_LIBRARY_SHARED_D} )
SET_PROPERTY(TARGET ace_IMP APPEND PROPERTY IMPORTED_IMPLIB_DEBUG ${ace_LIBRARY_IMP_D} )
endif()
#if(MSVC)
# SET_PROPERTY(TARGET ace_IMP APPEND PROPERTY IMPORTED_LOCATION_DEBUG ${ace_LIBRARY_SHARED_D} )
# SET_PROPERTY(TARGET ace_IMP APPEND PROPERTY IMPORTED_IMPLIB_DEBUG ${ace_LIBRARY_IMP_D} )
#endif()

set_property(TARGET ace_IMP APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS ACE_HAS_DLL=1)
set_property(TARGET ace_IMP APPEND PROPERTY INTERFACE_LINK_LIBRARIES Threads::Threads)
Expand Down
Binary file modified 3rd_party/naked_ace.tgz
Binary file not shown.

0 comments on commit 141f250

Please sign in to comment.