Verified Commit f490a429 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

hscript: Build fixes for Mac OS X 10.12.6 (Xcode 9)

parent ce061359
Pipeline #140 passed with stages
in 42 seconds
......@@ -12,7 +12,13 @@ set(HSCRIPT_INCLUDE
key.hh
)
add_library(hscript SHARED ${HSCRIPT_SOURCE})
IF(INSTALL)
set(HSCRIPT_LIBRARY_TYPE SHARED)
ELSE(INSTALL)
set(HSCRIPT_LIBRARY_TYPE STATIC)
ENDIF(INSTALL)
add_library(hscript ${HSCRIPT_LIBRARY_TYPE} ${HSCRIPT_SOURCE})
target_compile_features(hscript PRIVATE cxx_nullptr)
target_compile_features(hscript PUBLIC cxx_unicode_literals)
target_link_libraries(hscript ${BLKID_LIBRARIES})
......
......@@ -13,6 +13,7 @@
#include <assert.h>
#include <fstream>
#include <regex>
#include <sstream>
#ifdef HAS_INSTALL_ENV
# include <unistd.h>
#endif /* HAS_INSTALL_ENV */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment