File tree 1 file changed +17
-11
lines changed
1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -562,6 +562,23 @@ set_target_properties(
562
562
PREFIX ""
563
563
)
564
564
565
+ get_property (is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
566
+ if (is_multi_config)
567
+ SET_TARGET_PROPERTIES (
568
+ ${GLideN64_DLL_NAME}
569
+ PROPERTIES
570
+ LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /plugin
571
+ RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /plugin
572
+ )
573
+ elseif (GLIDEN64_BUILD_TYPE)
574
+ SET_TARGET_PROPERTIES (
575
+ ${GLideN64_DLL_NAME}
576
+ PROPERTIES
577
+ LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /plugin/${GLIDEN64_BUILD_TYPE}
578
+ RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /plugin/${GLIDEN64_BUILD_TYPE}
579
+ )
580
+ endif (is_multi_config)
581
+
565
582
if (GLIDEN64_BUILD_TYPE STREQUAL "Release" )
566
583
include (CheckIPOSupported)
567
584
check_ipo_supported(RESULT result)
@@ -570,20 +587,9 @@ if(GLIDEN64_BUILD_TYPE STREQUAL "Release")
570
587
set_property (TARGET ${GLideN64_DLL_NAME} PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE )
571
588
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -O3" )
572
589
endif ()
573
- SET_TARGET_PROPERTIES (
574
- ${GLideN64_DLL_NAME}
575
- PROPERTIES
576
- LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /plugin/Release
577
- )
578
590
endif (GLIDEN64_BUILD_TYPE STREQUAL "Release" )
579
591
580
592
if (GLIDEN64_BUILD_TYPE STREQUAL "Debug" )
581
- SET_TARGET_PROPERTIES (
582
- ${GLideN64_DLL_NAME}
583
- PROPERTIES
584
- LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /plugin/Debug
585
- )
586
-
587
593
if (SDL)
588
594
if (NOHQ)
589
595
target_link_libraries (${GLideN64_DLL_NAME} PRIVATE ${OPENGL_LIBRARIES} ${SDL_LIBRARIES} ${FREETYPE_LIBRARIES} ${LOG_LIB} ${GLIDENUI_LIBRARIES} osald )
You can’t perform that action at this time.
0 commit comments