mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
30
dev/cmake/Modules/Finddl.cmake
Normal file
30
dev/cmake/Modules/Finddl.cmake
Normal file
@@ -0,0 +1,30 @@
|
||||
# - Find libdl
|
||||
# Find the native LIBDL includes and library
|
||||
#
|
||||
# LIBDL_INCLUDE_DIR - where to find dlfcn.h, etc.
|
||||
# LIBDL_LIBRARIES - List of libraries when using libdl.
|
||||
# LIBDL_FOUND - True if libdl found.
|
||||
|
||||
|
||||
IF (LIBDL_INCLUDE_DIR)
|
||||
# Already in cache, be silent
|
||||
SET(LIBDL_FIND_QUIETLY TRUE)
|
||||
ENDIF (LIBDL_INCLUDE_DIR)
|
||||
|
||||
FIND_PATH(LIBDL_INCLUDE_DIR dlfcn.h)
|
||||
|
||||
SET(LIBDL_NAMES dl libdl ltdl libltdl)
|
||||
FIND_LIBRARY(LIBDL_LIBRARY NAMES ${LIBDL_NAMES} )
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set LIBDL_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibDL DEFAULT_MSG LIBDL_LIBRARY LIBDL_INCLUDE_DIR)
|
||||
|
||||
IF(LIBDL_FOUND)
|
||||
SET( LIBDL_LIBRARIES ${LIBDL_LIBRARY} )
|
||||
ELSE(LIBDL_FOUND)
|
||||
SET( LIBDL_LIBRARIES )
|
||||
ENDIF(LIBDL_FOUND)
|
||||
|
||||
MARK_AS_ADVANCED( LIBDL_LIBRARY LIBDL_INCLUDE_DIR )
|
||||
@@ -83,8 +83,14 @@ if __name__=='__main__':
|
||||
path = os.path.abspath(__file__)
|
||||
path = os.path.dirname(path)
|
||||
path = os.path.dirname(path)
|
||||
|
||||
|
||||
if os.path.exists(os.path.join(path, ".JSON_done")):
|
||||
sys.exit()
|
||||
|
||||
version_to_file(root_dir = path)
|
||||
gitrev_to_file(root_dir = path)
|
||||
import JSON_to_CPP
|
||||
JSON_to_CPP.TO_CPP(root_dir = path)
|
||||
JSON_to_CPP.TO_CPP(root_dir = path)
|
||||
|
||||
open(os.path.join(path, ".JSON_done"), "w").close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user