From f82fd80305ecff29c8a65cf5a5e1b12c588f1171 Mon Sep 17 00:00:00 2001 From: xantares Date: Thu, 17 Jul 2014 07:11:51 +0000 Subject: [PATCH 1/2] Install if not ASMJIT_EMBED --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 971f060..3a51e44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -204,7 +204,7 @@ Macro(AsmJit_AddLibrary in_name in_src in_deps in_cflags in_cflags_dbg in_cflags Set_Target_Properties(${in_name} PROPERTIES LINK_FLAGS "${ASMJIT_LFLAGS}") # Install Instructions. - If(NOT ASMJIT_STATIC) + If(NOT ASMJIT_EMBED) Install(TARGETS ${in_name} DESTINATION lib) EndIf() @@ -298,7 +298,7 @@ EndIf() # [AsmJit - Headers] # ============================================================================= -If(NOT ASMJIT_STATIC) +If(NOT ASMJIT_EMBED) ForEach(i ${ASMJIT_SRC}) Get_Filename_Component(path ${i} PATH) Get_Filename_Component(name ${i} NAME) From 2475e3f80ab9865d93be032dfd6ca5f648cc57a2 Mon Sep 17 00:00:00 2001 From: xantares Date: Thu, 17 Jul 2014 07:13:29 +0000 Subject: [PATCH 2/2] Install dll in /bin --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a51e44..438b207 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,7 +205,9 @@ Macro(AsmJit_AddLibrary in_name in_src in_deps in_cflags in_cflags_dbg in_cflags # Install Instructions. If(NOT ASMJIT_EMBED) - Install(TARGETS ${in_name} DESTINATION lib) + Install(TARGETS ${in_name} LIBRARY DESTINATION lib${LIB_SUFFIX} + ARCHIVE DESTINATION lib${LIB_SUFFIX} + RUNTIME DESTINATION bin) EndIf() Unset(__type)