diff options
author | Lloyd Hilaiel <me@lloyd.io> | 2014-02-23 15:43:42 -0800 |
---|---|---|
committer | Lloyd Hilaiel <me@lloyd.io> | 2014-02-23 15:43:42 -0800 |
commit | 13cf23655c8f917c3f487800d7bb397b7cbc432a (patch) | |
tree | db973f33e2cee8660988fd8863d7b64a324bbc1e | |
parent | 468f21940b354e2b4990d0d95a2ed44b177d5d22 (diff) | |
download | yajl-13cf23655c8f917c3f487800d7bb397b7cbc432a.tar.gz |
fix win32 build - don't link libm on doze
-rw-r--r-- | reformatter/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/reformatter/CMakeLists.txt b/reformatter/CMakeLists.txt index 6020d81..52a9bee 100644 --- a/reformatter/CMakeLists.txt +++ b/reformatter/CMakeLists.txt @@ -26,7 +26,13 @@ LINK_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../${YAJL_DIST_NAME}/lib) ADD_EXECUTABLE(json_reformat ${SRCS}) -TARGET_LINK_LIBRARIES(json_reformat m yajl_s) +TARGET_LINK_LIBRARIES(json_reformat yajl_s) + +# In some environments, we must explicitly link libm (like qnx, +# thanks @shahbag) +IF (NOT WIN32) + TARGET_LINK_LIBRARIES(json_reformat m) +ENDIF (NOT WIN32) # copy the binary into the output directory GET_TARGET_PROPERTY(binPath json_reformat LOCATION) |