summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2012-04-24 16:06:24 -0400
committerLloyd Hilaiel <lloyd@hilaiel.com>2014-02-15 10:40:14 +0100
commit02d677c4fb8ff546170ee661084e2676eadee578 (patch)
treedce6f74a3e65fa950f4847d61a447b8a1095b421 /src
parent7a021ff622e8eaf549674eed5d5a805abd59ee1b (diff)
downloadyajl-02d677c4fb8ff546170ee661084e2676eadee578.tar.gz
Makes 'nmake install' work.
In BUILDING.WIN32, the following line exists: nmake install This doesn't work because the install targets never get built because of the code: IF(NOT WIN32) INSTALL(...) ... ENDIF() in several CMakeLists.txt files. There's no reason to disallow INSTALL on Windows, even if most developers (who use devenv on its own) will never use it.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6ebf648..99cf9e9 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -75,12 +75,13 @@ ENDFOREACH (header ${PUB_HDRS})
INCLUDE_DIRECTORIES(${incDir}/..)
-IF(NOT WIN32)
- # at build time you may specify the cmake variable LIB_SUFFIX to handle
- # 64-bit systems which use 'lib64'
- INSTALL(TARGETS yajl LIBRARY DESTINATION lib${LIB_SUFFIX})
- INSTALL(TARGETS yajl_s ARCHIVE DESTINATION lib${LIB_SUFFIX})
- INSTALL(FILES ${PUB_HDRS} DESTINATION include/yajl)
- INSTALL(FILES ${incDir}/yajl_version.h DESTINATION include/yajl)
- INSTALL(FILES ${shareDir}/yajl.pc DESTINATION share/pkgconfig)
-ENDIF()
+# at build time you may specify the cmake variable LIB_SUFFIX to handle
+# 64-bit systems which use 'lib64'
+INSTALL(TARGETS yajl
+ RUNTIME DESTINATION lib${LIB_SUFFIX}
+ LIBRARY DESTINATION lib${LIB_SUFFIX}
+ ARCHIVE DESTINATION lib${LIB_SUFFIX})
+INSTALL(TARGETS yajl_s ARCHIVE DESTINATION lib${LIB_SUFFIX})
+INSTALL(FILES ${PUB_HDRS} DESTINATION include/yajl)
+INSTALL(FILES ${incDir}/yajl_version.h DESTINATION include/yajl)
+INSTALL(FILES ${shareDir}/yajl.pc DESTINATION share/pkgconfig)