[go: up one dir, main page]

Skip to content

Commit

Permalink
Correct the placement of extension modules in the Windows build tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Licameli committed May 19, 2021
1 parent 7fd53e8 commit 5a362c3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cmake-proxies/cmake-modules/AudacityFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -330,17 +330,25 @@ function( audacity_module_fn NAME SOURCES IMPORT_TARGETS
set( DEFINES )
list( APPEND DEFINES ${ADDITIONAL_DEFINES} )

# send the file to the proper place in the build tree, by setting the
# appropriate property for the platform
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
set( DIRECTORY_PROPERTY RUNTIME_OUTPUT_DIRECTORY )
else ()
set( DIRECTORY_PROPERTY LIBRARY_OUTPUT_DIRECTORY )
endif ()

if (LIBTYPE STREQUAL "MODULE")
set( SHAPE "box" )
set_target_property_all( ${TARGET} LIBRARY_OUTPUT_DIRECTORY "${_MODDIR}" )
set_target_property_all( ${TARGET} ${DIRECTORY_PROPERTY} "${_MODDIR}" )
set_target_properties( ${TARGET}
PROPERTIES
PREFIX ""
FOLDER "modules" # for IDE organization
)
else()
set( SHAPE "octagon" )
set_target_property_all( ${TARGET} LIBRARY_OUTPUT_DIRECTORY "${_EXEDIR}" )
set_target_property_all( ${TARGET} ${DIRECTORY_PROPERTY} "${_EXEDIR}" )
set_target_properties( ${TARGET}
PROPERTIES
PREFIX ""
Expand Down

0 comments on commit 5a362c3

Please sign in to comment.